Click here to Skip to main content
15,892,737 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Handling the message by minimizing using "Windows key+D" Pin
Rajesh R Subramanian8-Jan-08 0:50
professionalRajesh R Subramanian8-Jan-08 0:50 
GeneralRe: Handling the message by minimizing using "Windows key+D" Pin
Mohammad Khodaea8-Jan-08 1:27
Mohammad Khodaea8-Jan-08 1:27 
GeneralRe: Handling the message by minimizing using "Windows key+D" Pin
toxcct8-Jan-08 1:55
toxcct8-Jan-08 1:55 
GeneralRe: Handling the message by minimizing using "Windows key+D" Pin
Rajesh R Subramanian8-Jan-08 2:00
professionalRajesh R Subramanian8-Jan-08 2:00 
GeneralRe: Handling the message by minimizing using "Windows key+D" Pin
toxcct8-Jan-08 2:05
toxcct8-Jan-08 2:05 
GeneralRe: Handling the message by minimizing using "Windows key+D" Pin
Rajesh R Subramanian8-Jan-08 2:14
professionalRajesh R Subramanian8-Jan-08 2:14 
GeneralRe: Handling the message by minimizing using "Windows key+D" Pin
toxcct8-Jan-08 2:19
toxcct8-Jan-08 2:19 
GeneralRe: Handling the message by minimizing using "Windows key+D" Pin
Rajesh R Subramanian8-Jan-08 2:35
professionalRajesh R Subramanian8-Jan-08 2:35 
toxcct wrote:
WM_SYSCOMMAND.


Overriding the WM_SYSCOMMAND is the best way if one should execute some code before an app is being minimized. But the WinKey+D combination will not send your application this message!

toxcct wrote:
also, the IsIconic() function is there to know if an application is minimized...


The op has a two-staged problem. At first, he must detect WinKey+D. And then, he must minimize it. I suggested him how to detect WinKey+D. He could add a handler which would be executed while this combination is pressed. Now, the second stage is to put the code within this handler, which sends his app into the system tray. Smile | :)


Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
...formerly known as brahmma
Codeproject.com: Visual C++ MVP

GeneralRe: Handling the message by minimizing using "Windows key+D" Pin
toxcct8-Jan-08 3:14
toxcct8-Jan-08 3:14 
GeneralRe: Handling the message by minimizing using "Windows key+D" Pin
David Crow8-Jan-08 3:21
David Crow8-Jan-08 3:21 
GeneralRe: Handling the message by minimizing using "Windows key+D" Pin
Rajesh R Subramanian8-Jan-08 3:27
professionalRajesh R Subramanian8-Jan-08 3:27 
GeneralRe: Handling the message by minimizing using "Windows key+D" Pin
toxcct8-Jan-08 3:31
toxcct8-Jan-08 3:31 
GeneralRe: Handling the message by minimizing using "Windows key+D" Pin
Rajesh R Subramanian8-Jan-08 3:37
professionalRajesh R Subramanian8-Jan-08 3:37 
QuestionRe: Handling the message by minimizing using "Windows key+D" Pin
David Crow8-Jan-08 3:19
David Crow8-Jan-08 3:19 
QuestionRe: Handling the message by minimizing using "Windows key+D" Pin
David Crow8-Jan-08 5:23
David Crow8-Jan-08 5:23 
Questionhow to show only 10 lines in edit box Pin
rajneshmalik7-Jan-08 23:59
rajneshmalik7-Jan-08 23:59 
AnswerRe: how to show only 10 lines in edit box Pin
Rajesh R Subramanian8-Jan-08 0:44
professionalRajesh R Subramanian8-Jan-08 0:44 
GeneralRe: how to show only 10 lines in edit box Pin
rajneshmalik8-Jan-08 1:15
rajneshmalik8-Jan-08 1:15 
GeneralRe: how to show only 10 lines in edit box Pin
Rajesh R Subramanian8-Jan-08 1:23
professionalRajesh R Subramanian8-Jan-08 1:23 
GeneralRe: how to show only 10 lines in edit box Pin
rajneshmalik8-Jan-08 1:52
rajneshmalik8-Jan-08 1:52 
GeneralRe: how to show only 10 lines in edit box [modified] Pin
Rajesh R Subramanian8-Jan-08 3:34
professionalRajesh R Subramanian8-Jan-08 3:34 
AnswerRe: how to show only 10 lines in edit box Pin
David Crow8-Jan-08 3:24
David Crow8-Jan-08 3:24 
Generalcheck box in the menu pane Pin
Chandrasekharan P7-Jan-08 23:56
Chandrasekharan P7-Jan-08 23:56 
GeneralRe: check box in the menu pane Pin
toxcct8-Jan-08 0:01
toxcct8-Jan-08 0:01 
GeneralRe: check box in the menu pane Pin
Chandrasekharan P8-Jan-08 0:20
Chandrasekharan P8-Jan-08 0:20 

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.