Hi,
Please reply for this mail.I am having a combo box its parent is toolbar.But i want to access that combo box list other than parent window.Kindly give a solution for this problem
Created combo box with function CreateWindowEx() inside Main window & setting its parent window as Toolbar.so if i am clicking on combobox from that main window it will open (Combo box list)without any problem,But i want to open that combo box list inside a child window what i have to do for that?
Eventhough the HWND of Combo box ie hWndCombo1 global,i canot send message from childwindow to show the list when user clicking on combo box arrow.I don't know why that is not possible.Same toolbar i have somany buttons also these buttons i am handling from child window without any problem.
For this, you don't have to know the HWND of the combo. Just check if you are adding items to the combo box or not. Its possible that the combo box is empty and thats why you are not seeing anything.
I posted a part of the code.in brief i have a main window, from main window procedure i am creating toolbar inside toolbar buttons(Using Resource)& combo box, a mdi client window.From Mdi Client window Proc creating MDI Child window.From this child window i want to open the combo box dropdown list,but i canot.I can open that combo box from MDI Client window but i don't want that.Please help me
Sorry ,I cannot post the full code ,Because that is very lengthy code. can you please tell me, if iam creating a combo box from child window procedure Under WM_CREAT on toolbar(parent window of combo box setting as toolbar),can i open that combo box from that child window.For me that is the problem it is not opening from that chil window.If i am creating that same combo box from main window procedure i can open that combo box without any problem.But my application demanding to open the combo box from child window.Please help me i am fresher in coding field
After looking at the specific part of code where you are creating the combo and adding strings, it looks correct.
Why I am asking for code is, because only looking at specific part, problem cannot be known. Sometimes, the problem in one part effects other parts.
What exactly is going on, what exactly you are trying is not clear.
In case the code is big and you have no issues of making your code public, you can upload it somewhere and post the link. I can have a look.
Thanks alot for your responds.i found out the problem.problem was, i was setting keyboard focus from child window to some other window in one condition, so only toolbar loosing its focus.But SetFocus function actually for keyboard right,why it is effecting Mouse events??