Click here to Skip to main content
15,891,976 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
toxcct wrote:
he implemented a "Go To tray" function in his application. but he certainly throws his Apps to the tray when selecting that action on a Menu or with a button.


Yes. I am telling the op that he has to capture Win+D and execute the same code to send his app to the tray in response. Because his app is currently not reacting to Win+D, which is what his problem is. You may want to override OnSysCommand like this to verify it:

void CDialogDlg::OnSysCommand(UINT nID, LPARAM lParam)
{
	if(nID==SC_MINIMIZE)
		AfxMessageBox(_T("Minimizing!"));
}


Pressing the minimize button will display the message. But if you press Win+D, the control never reaches here, but the app goes minimized.

toxcct wrote:
Win+D is a Windows implementation to show the desktop. it throws a Minimize event to every application in the taskbar.


What exactly do you mean by minimize event? Windows won't throw any such minimize event when Win+D is pressed!


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: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 
GeneralRe: check box in the menu pane Pin
Chandrasekharan P8-Jan-08 0:35
Chandrasekharan P8-Jan-08 0:35 
GeneralRe: check box in the menu pane Pin
Chandrasekharan P8-Jan-08 19:04
Chandrasekharan P8-Jan-08 19:04 
Generalcall a object in all classes mfc vc++ Pin
guru moorthy.k7-Jan-08 23:43
guru moorthy.k7-Jan-08 23:43 

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.