Click here to Skip to main content
15,909,546 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Elegant way of handling a lot of variables ? Pin
Owner drawn6-Feb-06 1:04
Owner drawn6-Feb-06 1:04 
QuestionHow to compile "Express OLE DB Library" under VS2003 Std Pin
gomez_a6-Feb-06 0:25
gomez_a6-Feb-06 0:25 
QuestionHow to ignore '/EDITANDCONTINUE' option Pin
arunperi6-Feb-06 0:25
arunperi6-Feb-06 0:25 
AnswerRe: How to ignore '/EDITANDCONTINUE' option Pin
ThatsAlok6-Feb-06 0:46
ThatsAlok6-Feb-06 0:46 
GeneralRe: How to ignore '/EDITANDCONTINUE' option Pin
arunperi6-Feb-06 0:57
arunperi6-Feb-06 0:57 
QuestionNo tooltips within message loop Pin
Wim Engberts5-Feb-06 23:49
Wim Engberts5-Feb-06 23:49 
AnswerRe: No tooltips within message loop Pin
Blake Miller6-Feb-06 13:51
Blake Miller6-Feb-06 13:51 
GeneralRe: No tooltips within message loop Pin
Wim Engberts7-Feb-06 22:33
Wim Engberts7-Feb-06 22:33 
Thanks for the remark. I do indeed override the PreTranslateMessage, but I also do include a call to the base class version:

BOOL CView32Dlg::PreTranslateMessage(MSG* pMsg)
{
BOOL r = TRUE;

if ( m_hAccel == NULL
|| !TranslateAccelerator(this->m_hWnd, m_hAccel, pMsg))
r = CDialog::PreTranslateMessage(pMsg);

return r;
}

As a test, I have also already tried to only call the base class PreTranslateMessage (so ignoring the accelerators):

BOOL CView32Dlg::PreTranslateMessage(MSG* pMsg)
{
BOOL r = TRUE;

// if ( m_hAccel == NULL
// || !TranslateAccelerator(this->m_hWnd, m_hAccel, pMsg))
r = CDialog::PreTranslateMessage(pMsg);

return r;
}

This indeed resulted in my accelerators not functioning, but I still did not get any tooltips (of course, only until my mainloop ended and the program falls back into the Microsoft message pump, wherever that may be)

Thanks
GeneralRe: No tooltips within message loop Pin
Blake Miller8-Feb-06 4:43
Blake Miller8-Feb-06 4:43 
QuestionErrors! Migrating Adobe Acrobat 7.0 Pin
Antonymaharaj5-Feb-06 23:37
Antonymaharaj5-Feb-06 23:37 
QuestionWritting a data insame file again Pin
zahid_ash5-Feb-06 23:33
zahid_ash5-Feb-06 23:33 
AnswerRe: Writting a data insame file again Pin
Cedric Moonen5-Feb-06 23:36
Cedric Moonen5-Feb-06 23:36 
GeneralRe: Writting a data insame file again Pin
zahid_ash5-Feb-06 23:40
zahid_ash5-Feb-06 23:40 
AnswerRe: Writting a data insame file again Pin
_anil_5-Feb-06 23:45
_anil_5-Feb-06 23:45 
GeneralRe: Writting a data insame file again Pin
Wim Engberts5-Feb-06 23:53
Wim Engberts5-Feb-06 23:53 
GeneralRe: Writting a data insame file again Pin
_anil_5-Feb-06 23:56
_anil_5-Feb-06 23:56 
AnswerRe: Writting a data insame file again Pin
ThatsAlok6-Feb-06 0:39
ThatsAlok6-Feb-06 0:39 
Questionhow do we check if the computer is connected to the network Pin
namaskaaram5-Feb-06 23:30
namaskaaram5-Feb-06 23:30 
AnswerRe: how do we check if the computer is connected to the network Pin
namaskaaram5-Feb-06 23:31
namaskaaram5-Feb-06 23:31 
GeneralRe: how do we check if the computer is connected to the network Pin
ThatsAlok6-Feb-06 0:35
ThatsAlok6-Feb-06 0:35 
Questionsetting dialog size at run time Pin
swaapu5-Feb-06 23:18
swaapu5-Feb-06 23:18 
AnswerRe: setting dialog size at run time Pin
_anil_5-Feb-06 23:51
_anil_5-Feb-06 23:51 
GeneralRe: setting dialog size at run time Pin
swaapu6-Feb-06 0:08
swaapu6-Feb-06 0:08 
GeneralRe: setting dialog size at run time Pin
_anil_6-Feb-06 0:17
_anil_6-Feb-06 0:17 
QuestionVertical Orientation in CStatic with word wrap Pin
GayathriNaveen5-Feb-06 22:33
GayathriNaveen5-Feb-06 22:33 

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.