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

C / C++ / MFC

 
AnswerRe: How to get font information from clipboard Pin
Michael Dunn5-Jan-06 22:40
sitebuilderMichael Dunn5-Jan-06 22:40 
GeneralRe: How to get font information from clipboard Pin
Frankdou8-Jan-06 13:56
Frankdou8-Jan-06 13:56 
Questionhow to do like this popup menu Pin
HOW WHAT5-Jan-06 21:17
HOW WHAT5-Jan-06 21:17 
AnswerRe: uhow to do like this popup menu Pin
Sebastian Schneider5-Jan-06 21:31
Sebastian Schneider5-Jan-06 21:31 
GeneralRe: uhow to do like this popup menu Pin
HOW WHAT5-Jan-06 22:41
HOW WHAT5-Jan-06 22:41 
AnswerRe: uhow to do like this popup menu Pin
Owner drawn5-Jan-06 21:58
Owner drawn5-Jan-06 21:58 
GeneralRe: uhow to do like this popup menu Pin
HOW WHAT5-Jan-06 22:27
HOW WHAT5-Jan-06 22:27 
AnswerRe: how to do like this popup menu Pin
khan++5-Jan-06 23:16
khan++5-Jan-06 23:16 
I think you mean this:
When we double-click at the left-most position on a window's title-bar, the default action takes place. In case of explorer, the window closes.
That is: Click on it once, the pop-up menu shows up half a second later, but double-click on it, the window closes.

Now you want to do the default action when the user double-clicks on the icon.

Set a variable to true on first mouse-click, and start the timer. You could set the timer, like 500 ms. When the time expires and the timer function runs, it sets the variable back to false, kills the timer, and shows the menu.

Now if the user clicks, then before the timer function can run, he clicks again, then you kill the timer, set the variable back to false, and do the default action: Like in case of explorer: 'close the window' etc.

I hope I understood you, and I hope you understood this.


this is this.
GeneralRe: how to do like this popup menu Pin
HOW WHAT5-Jan-06 23:35
HOW WHAT5-Jan-06 23:35 
GeneralRe: how to do like this popup menu Pin
khan++6-Jan-06 0:05
khan++6-Jan-06 0:05 
QuestionHow to close this one? Pin
Eytukan5-Jan-06 20:58
Eytukan5-Jan-06 20:58 
AnswerRe: How to close this one? Pin
Anilkumar K V5-Jan-06 21:12
Anilkumar K V5-Jan-06 21:12 
GeneralRe: How to close this one? Pin
Eytukan5-Jan-06 22:03
Eytukan5-Jan-06 22:03 
GeneralRe: How to close this one? Pin
Owner drawn5-Jan-06 22:31
Owner drawn5-Jan-06 22:31 
GeneralRe: How to close this one? Pin
Eytukan5-Jan-06 22:46
Eytukan5-Jan-06 22:46 
AnswerRe: How to close this one? Pin
Prakash Nadar5-Jan-06 21:29
Prakash Nadar5-Jan-06 21:29 
GeneralRe: How to close this one? Pin
<color>Aljechin 5-Jan-06 21:32
<color>Aljechin 5-Jan-06 21:32 
GeneralRe: How to close this one? Pin
Eytukan5-Jan-06 22:01
Eytukan5-Jan-06 22:01 
AnswerRe: How to close this one? Pin
khan++5-Jan-06 23:01
khan++5-Jan-06 23:01 
GeneralRe: How to close this one? Pin
Eytukan5-Jan-06 23:04
Eytukan5-Jan-06 23:04 
GeneralRe: How to close this one? Pin
vikas amin6-Jan-06 0:02
vikas amin6-Jan-06 0:02 
QuestionRe: How to close this one? Pin
David Crow6-Jan-06 5:01
David Crow6-Jan-06 5:01 
AnswerRe: How to close this one? Pin
Eytukan8-Jan-06 20:17
Eytukan8-Jan-06 20:17 
GeneralRe: How to close this one? Pin
David Crow9-Jan-06 4:06
David Crow9-Jan-06 4:06 
GeneralRe: How to close this one? Pin
Eytukan9-Jan-06 4:14
Eytukan9-Jan-06 4:14 

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.