I would like to start by saying thanks to everyone who takes some time to view this thread and try to help.
I have a main window with a child static control. I have named the variable hsInfo.
This static control is created with styles SS_BITMAP, SS_NOTIFY and SS_REALSIZECONTROL, and displays bitmap. Also it responds when clicked on it.
Now I need to create another static control with styles same as above, to be on top of the above mentioned static control ( hsInfo ). This static control is named hsHelp.
When I pass hsInfo as the parent window in CreateWindow() for hsHelp, hsHelp doesn't appear at all.
If I click on area where hsHelp should approximately appear, parent static control sends its notification, instead of hsHelp's. It seems as if hsHelp doesn't even exist.
However, if main window's handle is passed as parent, child static control ( hsHelp ) is properly drawn, but its notifications again can't be captured,since clicking on it activates again notification of the other one ( hsInfo ).
My question is following:
What should I change in my code to have one static control to be a child of the other static control?
I should be able to catch notification messages from control when user clicks on it.
I work in MS Visual Studio Express 2008, on Windows XP, in C++, using WIN32 API.
If any other information is required ( source code or something similar ), please ask for it, I will more than gladly supply it.