Click here to Skip to main content
15,920,513 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: JPEG Pin
Chris Losinger25-Apr-03 4:25
professionalChris Losinger25-Apr-03 4:25 
GeneralRe: JPEG Pin
MAAK25-Apr-03 22:25
MAAK25-Apr-03 22:25 
GeneralHiding Menu items Pin
Dov Sherman25-Apr-03 3:50
Dov Sherman25-Apr-03 3:50 
GeneralRe: Hiding Menu items Pin
Maximilien25-Apr-03 4:07
Maximilien25-Apr-03 4:07 
GeneralRe: Hiding Menu items Pin
Dov Sherman25-Apr-03 5:44
Dov Sherman25-Apr-03 5:44 
GeneralRe: Hiding Menu items Pin
Maximilien25-Apr-03 5:46
Maximilien25-Apr-03 5:46 
GeneralRe: Hiding Menu items Pin
Toni7825-Apr-03 7:17
Toni7825-Apr-03 7:17 
GeneralProblem with Keyboard Accelerators Pin
allcodeluver25-Apr-03 3:50
allcodeluver25-Apr-03 3:50 
OnKeyDown does not seem to be getting called in this case at all. Any ideas what needs to be done in order for the keyboard accelerators to start working and keyboard inputs to get recorded?

Thanks in advance!!!

LRESULT TestPage::OnKeyDown(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
{
MSG msg;
HACCEL hAccel;
BOOL bRet;

if (!m_hWnd)
return FALSE;

hAccel = ::LoadAccelerators( _Module.m_hInstResource, MAKEINTRESOURCE(Accel));

if (m_hAccel == NULL)
return FALSE;

while ((bRet = ::GetMessage(&msg, m_hWnd, NULL, NULL)) != 0)
{
if (bRet == -1)
{
return FALSE;
}
else
{
if (!::TranslateAccelerator( m_hWnd, m_hAccel, &msg))
{
MessageBox ("Key Pressed ","Accelerators",MB_OK);
TranslateMessage(&msg);
DispatchMessage(&msg);
}
}
}

return TRUE;
}

Generallittle problem in contextsensitive help Pin
JensB25-Apr-03 3:45
JensB25-Apr-03 3:45 
QuestionQuestion about assign a reference to an object? Pin
George225-Apr-03 2:55
George225-Apr-03 2:55 
AnswerRe: Question about assign a reference to an object? Pin
Joaquín M López Muñoz25-Apr-03 3:12
Joaquín M López Muñoz25-Apr-03 3:12 
GeneralRe: Question about assign a reference to an object? Pin
George225-Apr-03 3:28
George225-Apr-03 3:28 
GeneralRe: Question about assign a reference to an object? Pin
Joaquín M López Muñoz25-Apr-03 3:37
Joaquín M López Muñoz25-Apr-03 3:37 
GeneralRe: Question about assign a reference to an object? Pin
George225-Apr-03 4:18
George225-Apr-03 4:18 
QuestionInsert CPropertySheet in SplitterWnd? How? Pin
jensreichert25-Apr-03 2:54
jensreichert25-Apr-03 2:54 
AnswerRe: Insert CPropertySheet in SplitterWnd? How? Pin
Joan M25-Apr-03 3:22
professionalJoan M25-Apr-03 3:22 
AnswerRe: Insert CPropertySheet in SplitterWnd? How? Pin
Joan M25-Apr-03 3:31
professionalJoan M25-Apr-03 3:31 
GeneralAdd-in dll Pin
Cedric Moonen25-Apr-03 1:55
Cedric Moonen25-Apr-03 1:55 
GeneralBox and lines Pin
Rage25-Apr-03 1:47
professionalRage25-Apr-03 1:47 
GeneralRe: Box and lines Pin
Ravi Bhavnani25-Apr-03 11:01
professionalRavi Bhavnani25-Apr-03 11:01 
GeneralAccessign the document object in a CWebBrowser2 Pin
John Oliver25-Apr-03 1:26
John Oliver25-Apr-03 1:26 
Generalhelp peeking messages Pin
sandrineV25-Apr-03 0:12
sandrineV25-Apr-03 0:12 
GeneralRe: help peeking messages Pin
Rage25-Apr-03 3:49
professionalRage25-Apr-03 3:49 
QuestionHow to set WS_EX_TOPMOST style at runtime? Pin
julych24-Apr-03 23:27
julych24-Apr-03 23:27 
AnswerRe: How to set WS_EX_TOPMOST style at runtime? Pin
User 665825-Apr-03 1:02
User 665825-Apr-03 1:02 

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.