Window procs and the like
I have created an application using CreateWindowEx etc to make all of the main windows, however. upon creating buttons, the window messages from them get sent to the parent window in the form of WM_COMMAND, param(BN_CLICKED). i need to move one of the buttons of my form and into another window, which i do not own. i have seen a WindowProc made especially for a button, (named buttonProc), however i cannot remember how to do it. can anyone help???
When you create the class for the button specify the buttonproc as the callback
or process the messages in the default callback by sending your own user defined message to the other callback with SendMessage()
Last edited by novacain; 10-26-2001 at 02:08 AM.
I don't think that would work, cause you see, a button has its own class predefined, so you can't mess with it.
of Zen Hall
If the button wasn't of the predefined type then they could do it. Alternatively, you can try and change WinProc's using SetWindowLong().