Click here to Skip to main content
15,902,189 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to get value of STL <vector> by iterator? Pin
vgrigor16-Feb-04 2:50
vgrigor16-Feb-04 2:50 
GeneralExcel protection question Pin
Tzoockee16-Feb-04 0:51
Tzoockee16-Feb-04 0:51 
Generalcreatting a transparent text GIF using CXImage Pin
emmatty16-Feb-04 0:43
emmatty16-Feb-04 0:43 
QuestionHow to detect the different regions of two images Pin
Arcrest16-Feb-04 0:29
Arcrest16-Feb-04 0:29 
GeneralWeb Browser control Pin
TrungHuynh16-Feb-04 0:09
TrungHuynh16-Feb-04 0:09 
QuestionSame hotkey for different dialogs in the same MFC program ?? Pin
bjolletts16-Feb-04 0:08
bjolletts16-Feb-04 0:08 
AnswerRe: Same hotkey for different dialogs in the same MFC program ?? Pin
David Crow16-Feb-04 2:27
David Crow16-Feb-04 2:27 
GeneralRe: Same hotkey for different dialogs in the same MFC program ?? Pin
bjolletts16-Feb-04 3:15
bjolletts16-Feb-04 3:15 
I do it like this:

In the maindialogs OnInit-function:
RegisterHotKey(GetSafeHwnd(), m_IDHotKey, NULL, VK_F5);

And add this to the messagemap in every dialog that should use the hotkey:
ON_MESSAGE(WM_HOTKEY,OnHotKey)

And the OnHotKey function looks like this:

LRESULT CFingerIDAdminDlg::OnHotKey(WPARAM wParam, LPARAM lParam)<br />
{<br />
   // Do stuff	<br />
}


It only works for the main dialog ... a F5-keystroke in the child window registrates as a F5-key in the main window. I thought that the WM_HOTKEY-message was going to be handled by the dialog that is active ??
GeneralRe: Same hotkey for different dialogs in the same MFC program ?? Pin
David Crow16-Feb-04 4:27
David Crow16-Feb-04 4:27 
GeneralRe: Same hotkey for different dialogs in the same MFC program ?? Pin
Maximilien16-Feb-04 8:16
Maximilien16-Feb-04 8:16 
Generallinck Pin
Anonymous15-Feb-04 23:49
Anonymous15-Feb-04 23:49 
GeneralRe: linck Pin
David Crow16-Feb-04 2:28
David Crow16-Feb-04 2:28 
GeneralRe: link Pin
Anonymous16-Feb-04 2:44
Anonymous16-Feb-04 2:44 
GeneralRe: link Pin
David Crow16-Feb-04 4:43
David Crow16-Feb-04 4:43 
GeneralRe: link Pin
Steve S16-Feb-04 4:54
Steve S16-Feb-04 4:54 
GeneralDifference between delete and delete[] Pin
Cedric Moonen15-Feb-04 23:08
Cedric Moonen15-Feb-04 23:08 
GeneralRe: Difference between delete and delete[] Pin
Rob Manderson15-Feb-04 23:20
protectorRob Manderson15-Feb-04 23:20 
GeneralRe: Difference between delete and delete[] Pin
RChin15-Feb-04 23:26
RChin15-Feb-04 23:26 
GeneralRe: Difference between delete and delete[] Pin
Cedric Moonen15-Feb-04 23:35
Cedric Moonen15-Feb-04 23:35 
GeneralRe: Difference between delete and delete[] Pin
Arcrest16-Feb-04 0:06
Arcrest16-Feb-04 0:06 
GeneralCreating shortcuts in Start menu Pin
Ashman15-Feb-04 22:54
Ashman15-Feb-04 22:54 
GeneralRe: Creating shortcuts in Start menu Pin
Arcrest16-Feb-04 1:14
Arcrest16-Feb-04 1:14 
GeneralProgrammatically copying a folder in MFC Pin
Ashman15-Feb-04 22:53
Ashman15-Feb-04 22:53 
GeneralRe: Programmatically copying a folder in MFC Pin
Prakash Nadar15-Feb-04 23:23
Prakash Nadar15-Feb-04 23:23 
GeneralRe: Programmatically copying a folder in MFC Pin
Ashman16-Feb-04 2:25
Ashman16-Feb-04 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.