Simply the static control is having the CS_PARENTDC class style. That is reason of this issue. You can avoid the issue as I said before. Or you can remove this style from the class, which will solve the issue. But it is not promoted it because it will affect all the static controls.
Hello, im pretty new to using win32 common controls, im wondering how to use the toolbar messages correctyl. Im writing an application that can remove icon's from the system-tray toolbar for annoying applications that dosn't allow you to remove their tray icon.
Here is my code, the button is hidden when i send a TB_HIDEBUTTON, but the toolbar is not resized properly at all, it shows cleary that a button is missing. So i need a way to automatically resize it to the correct size for the new number of buttons. I have tried TB_AUTOSIZE but it dosn't seem to have any effect.
Also, a second problem is the TB_GETBUTTONTEXT message, it returns a strLen of the button string correctly, but the "text" var is always just unilitialized garbage, i dont see why. Anyone knows why?
Also, a second problem is the TB_GETBUTTONTEXT message
In your case the application you create and taskbar are two saparate process. So pointer you passed to TB_GETBUTTONTEXT is pointing is vaid for your application aonly. the other applcation cannot access this address. Thats why your getting junk values. What you need to do is allocate some memory in the target process using the VirtualAllocEx() function, then pass that pointer to the message. After the message, you can read the string using the ReadProcessMemory() function.
Iam trying to develop a "Net Cafe" programme in vc++ 8. All communication between the Server and the Client are done through Socket.
My Problem was to Create the User Login Dialog ie: on that i want use disabling the Hot Key(Alt+Tab ,Ctl+combination) and enabling that after user logging.(Ctl+Alt+Del was done Disabled in Administrator )Rest of the hot keys only i wanted.
Give your Suggestion and if any sample code about this.