Click here to Skip to main content
15,919,898 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Overloading operator new Pin
hint_549-Mar-06 4:19
hint_549-Mar-06 4:19 
GeneralRe: Overloading operator new Pin
hint_549-Mar-06 4:17
hint_549-Mar-06 4:17 
GeneralRe: Overloading operator new Pin
Ryan Binns9-Mar-06 12:08
Ryan Binns9-Mar-06 12:08 
QuestionImmediate Dialog Close by Cancel Button Pin
thelvaci8-Mar-06 8:32
thelvaci8-Mar-06 8:32 
AnswerRe: Immediate Dialog Close by Cancel Button Pin
Mircea Puiu8-Mar-06 8:55
Mircea Puiu8-Mar-06 8:55 
GeneralRe: Immediate Dialog Close by Cancel Button Pin
thelvaci8-Mar-06 9:20
thelvaci8-Mar-06 9:20 
GeneralRe: Immediate Dialog Close by Cancel Button Pin
Mircea Puiu8-Mar-06 9:33
Mircea Puiu8-Mar-06 9:33 
AnswerRe: Immediate Dialog Close by Cancel Button Pin
Nibu babu thomas8-Mar-06 17:15
Nibu babu thomas8-Mar-06 17:15 
thelvaci wrote:
if a combo box shows dropdown list and user hits the Cancel button Dialog does not close immediately. It closes the Dropdown list ignoring the cancel button.
User has to push cancel button one more time to close the Dlg.
How can I make it close the dialog immediately?


Yeah it happens. I guess it's so because when the combo list box comes up it captures the mouse(Using SetCapture).

And now events that occur related to mouse will be relayed to the list box.

This is done so that the list box can be properly closed if the user clicks anywhere outside the list box. Now when the listbox closes it calls ReleaseCapture.

This is the reason why the cancel button doesn't get the mouse event when the list box is visible. But second time it does get.


Nibu thomas
Software Developer

GeneralRe: Immediate Dialog Close by Cancel Button Pin
thelvaci8-Mar-06 22:00
thelvaci8-Mar-06 22:00 
AnswerRe: Immediate Dialog Close by Cancel Button Pin
Ryan Binns8-Mar-06 17:22
Ryan Binns8-Mar-06 17:22 
GeneralRe: Immediate Dialog Close by Cancel Button Pin
thelvaci8-Mar-06 22:12
thelvaci8-Mar-06 22:12 
GeneralRe: Immediate Dialog Close by Cancel Button Pin
Ryan Binns8-Mar-06 22:19
Ryan Binns8-Mar-06 22:19 
GeneralRe: Immediate Dialog Close by Cancel Button Pin
thelvaci9-Mar-06 1:02
thelvaci9-Mar-06 1:02 
AnswerRe: Immediate Dialog Close by Cancel Button Pin
Aqueel8-Mar-06 17:45
Aqueel8-Mar-06 17:45 
GeneralRe: Immediate Dialog Close by Cancel Button Pin
Nibu babu thomas8-Mar-06 18:09
Nibu babu thomas8-Mar-06 18:09 
GeneralRe: Immediate Dialog Close by Cancel Button Pin
toxcct8-Mar-06 21:16
toxcct8-Mar-06 21:16 
GeneralRe: Immediate Dialog Close by Cancel Button Pin
Nibu babu thomas8-Mar-06 21:17
Nibu babu thomas8-Mar-06 21:17 
GeneralRe: Immediate Dialog Close by Cancel Button Pin
toxcct8-Mar-06 21:19
toxcct8-Mar-06 21:19 
GeneralRe: Immediate Dialog Close by Cancel Button Pin
Nibu babu thomas8-Mar-06 21:38
Nibu babu thomas8-Mar-06 21:38 
GeneralRe: Immediate Dialog Close by Cancel Button Pin
thelvaci9-Mar-06 1:07
thelvaci9-Mar-06 1:07 
QuestionChanging Bit Map on ToolBar Buttons Pin
Jethro638-Mar-06 8:09
Jethro638-Mar-06 8:09 
AnswerRe: Changing Bit Map on ToolBar Buttons Pin
Hamid_RT8-Mar-06 8:59
Hamid_RT8-Mar-06 8:59 
GeneralRe: Changing Bit Map on ToolBar Buttons Pin
Jethro638-Mar-06 9:16
Jethro638-Mar-06 9:16 
AnswerRe: Changing Bit Map on ToolBar Buttons Pin
thelvaci8-Mar-06 9:01
thelvaci8-Mar-06 9:01 
GeneralRe: Changing Bit Map on ToolBar Buttons Pin
Jethro639-Mar-06 2:25
Jethro639-Mar-06 2:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.