   Win32 GUI problem with events
  HiI have pure win32  main window, and then panel (which I created using "static") and then on this panel I have a number of controls - comboboxes,buttons and etc... and they parent control is the panel)Problem is that events from these controls aren't reaching WndProc function. When I remove this intermediate parent panel ("static") control then all work fine.How to fix it so that I can leave the controls on the panel and still get all events?Thanks in advance   
  Many of those controls send messages to their parent to handle, in this case the Panel.  The panel is likely not doing anything with them.  What you can do is superclass your Panel (aka superclass the STATIC control).  You can make a separate window procedure for the superclassed panel, which can forward the messages on to your regular window procedure, or handle them directly there.  You could also set it to use your standard window procedure, but this may require some more work (see MSDN about superclassing) since you usually need to call the class's (STATIC's) base procedure as well.[edit]Added link to MSDN about superclasses.[Edited by - Rattrap on April 6, 2010 8:34:53 AM];  Thanks!I wasn't even aware about this superclassing. It wasn't even mentioned in any tutorial I read.Gamedev.net and OpenGL.org are the best forums on Earth!  ;  You wanna do something like this in you superclassed Static Source File:...// WindowsX.h is needed for the Utility Macros, like for HANDLE_MSG and FORWARD_WM_COMMAND#include "WindowsX.h"...LRESULT WndProc ( HWND hwnd, UINT message,WPARAM wParam, LPARAM lParam ){switch ( message ) {HANDLE_MSG ( hwnd, WM_COMMAND, wm_command ) ;...}}}...void wm_command ( HWND hwnd, int id, HWND hwndCtl,  UINT codeNotify ){FORWARD_WM_COMMAND ( ::GetParent ( hwnd ), id, hwndCtl, codeNotify,::SendMessage ) ;}You have to forward the WM_NOTIFY as well.   