Click here to Skip to main content
15,888,286 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have a mfc olecontrol being used in an c# form. For this drop down control i have a mapped OCM_COMMAND message.

When i open C# form for first time, and if i click this control OCM_COMMAND message will be fired whenever i click on drop down control, but if i hide and open the form again this OCM_COMMAND message will not be fired even if i click on drop down control

I have observed hwnd of this control will be unique int for first time. But after re-opening the form hwnd will be zero

What I have tried:

I tried using SW_ZNOORDER flag while creating the control. But it didn't work.
Posted
Comments
Richard MacCutchan 23-Mar-17 5:32am    
"But it didn't work"
Which means what?
yash35 23-Mar-17 15:37pm    
Still OCM_COMMAND was not firing on click of on dropdown

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900