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???