Questions tagged [win32gui]

NOT FOR GENERAL WIN32 PROGRAMMING QUESTIONS (use [winapi])! This is ONLY for questions about the "Win32GUI" library, which is a C++ library for Win32 GUI programming.

Win32GUI is a C++ generic library for Win32 GUI programming.

It features real GUI RAII (Resources Acquisition Is Initialization), event handling, easy manipulation of standard controls, thread-safety and simple menu handling.

865 questions
0
votes
0 answers

Include data with win32 TabItem

I am using Win32 for my GUI. I have TabControl and TabItem classes. The TabItem class simply holds a TCITEM struct and the TabControl->AddTab method takes a TabItem as an argument and accesses that struct. class TabItem { public: TabItem(LPWSTR…
kvanbere
  • 3,289
  • 3
  • 27
  • 52
0
votes
1 answer

C++ Win32 application continuously crashes when working with static text control. Can't figure out why

SendMessage(hEditControl, WM_GETTEXT,255,(LPARAM)editbuffer); GetWindowText(hTextControl, (LPWSTR)allText,GetWindowTextLength(hTextControl)); //allText = appendStrings((char*)TEXT("whatever"), (char*)TEXT("whatever")); SetWindowText(hTextControl,…
Iowa15
  • 3,027
  • 6
  • 28
  • 35
0
votes
1 answer

IWebBrowser2 control not getting created when tried to do it in seperate thread

void CUIPopupWnd::ieThreadProc(MSG* msg, LPVOID lpParameter){ CUIPopupWnd *ptrPopUpWndCtrl = (CUIPopupWnd*)GetWindowLongPtr((HWND)msg->wParam , GWLP_USERDATA); switch(msg->message) { case WM_IECREATE: { …
Srikanth P Vasist
  • 1,327
  • 2
  • 14
  • 26
0
votes
1 answer

Custom CTreeCtrl - How to modify text / selection color

First of all, i would customize - among other things - color of text and selection color(text background). For example, text color should be blue; color of text background should be transparent. So, I have overriden OnPaint() method; I call…
IT.
  • 311
  • 1
  • 5
  • 24
0
votes
1 answer

WIN32 change the text insideTextOut

This will diplay the text on the screen with a TRANSPARENT BG and A colored text, but what if i want to change the text later, how do i do? should i use: SendMessage(); or: SetWindowText( ) If yes, how and if no, then what then??? and how case…
user1417815
  • 445
  • 3
  • 7
  • 16
0
votes
1 answer

how to load a dialog exe as a child window in anohter dialog process

I have two separate apps A.exe and B.exe, which results into two independent top level windows. Both are C++ Apps and uses win32 gui framework on windows platform. I want to combine these to a new app C.exe such that it shows the two in separate…
Faqir Aamir
  • 59
  • 10
0
votes
1 answer

How to insert a standalone Back navigation button into my Windows application?

I want to use the same button in my own dialog: As I can see, it is used by Windows Explorer and some other system dialogs. Is it a standard control? How can I insert it into my application?
Andrew
  • 3,696
  • 3
  • 40
  • 71
0
votes
2 answers

How To Handle NM_CUSTOMDRAW event to retrieve List items

I'm working on a win32/MFC project. I have a custom CListCtrl control that I must to add, from time to time, some strings of characters. I absolutely need to perform some manipulations on items dynamically added to my CListCtrl. Ultra-Basically, I…
IT.
  • 311
  • 1
  • 5
  • 24
0
votes
1 answer

WS_EX_LAYERED windows does not move with respect to its parent window

I have created a window which has WS_EX_LAYERED extended style. After that I changed parent of this window as acall to SetParent. But When I move parent window on desktop my window is not changing its position with respect to its parent. int…
Ashish Mittal
  • 643
  • 3
  • 12
  • 32
0
votes
1 answer

Python: cannot find the handle with win32gui.FindWindowEx()

I'm trying to ge the handle for "Yes" button in a dialog, so I can send the message to click it. I get the dialog and then I try to find the button, but I always get 0 back. import win32gui hwnd = win32gui.FindWindow("#32770", "Programs and…
Alex Okrushko
  • 7,212
  • 6
  • 44
  • 63
0
votes
1 answer

Trying to terminate the text drawn by drawText(Win32) if there is not enough height in the rect

I am trying to draw a multiline text using drawText. I am able to keep the width constant by passing DT_WORD_ELLIPSIS | DT_WORDBREAK flags but if the string is long the text is getting cut vertically in the last line. How to ensure that drawText…
deovrat singh
  • 1,220
  • 2
  • 17
  • 33
0
votes
1 answer

User defined Windows shortcut for menu in pages

I have to create a page using visual studio c++ with different menus having shortcuts (key accelerator).The shortcut should be like the way we have in windows notepad eg.(alt + f for files,alt + e for edit) etc.I want to know how to implement my own…
0
votes
1 answer

Overdrawing on the toolbar? Alternative idea?

Main aim is wanting to draw Tab's within the draw area of the Toolbar of the Applicaiton for a NoteBook or Tab's to use the above space instead of being bellow the toolbar. The frame work we're using is WxWidgets, C++/C. I have looked around but…
Chad
  • 2,938
  • 3
  • 27
  • 38
-1
votes
0 answers

Win32 GetWindowRect() returns a rect to a different monitor than where the window is actually location

We are using pyWin32 to draw some text when e-g "Calculator" window is detected. We are in a multi-display environment, where the number of displays and order of display is never ensured. A user could have displayed positioned any way he…
-1
votes
1 answer

Python Win32API SendMessage win32con WM_SETTEXT only works once

Simplified and working code below, but only works once then not again until the window is restarted. Is there some sort of finish set text missing or some other limitation? Can't find any results on google, Thanks import win32api import…