Click here to Skip to main content
15,903,523 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to determine the focused control? Pin
User-37793620-Oct-03 6:23
User-37793620-Oct-03 6:23 
AnswerRe: How to determine the focused control? Pin
Michael P Butler20-Oct-03 6:40
Michael P Butler20-Oct-03 6:40 
AnswerRe: How to determine the focused control? Pin
Rafael Fernández López20-Oct-03 6:40
Rafael Fernández López20-Oct-03 6:40 
GeneralRe: How to determine the focused control? Pin
User-37793621-Oct-03 6:56
User-37793621-Oct-03 6:56 
GeneralBandwidth Limiting Pin
Blade[DMS]20-Oct-03 6:02
Blade[DMS]20-Oct-03 6:02 
GeneralRe: Bandwidth Limiting Pin
Trollslayer20-Oct-03 6:24
mentorTrollslayer20-Oct-03 6:24 
GeneralRe: Bandwidth Limiting Pin
Blade[DMS]20-Oct-03 6:40
Blade[DMS]20-Oct-03 6:40 
GeneralRe: Bandwidth Limiting Pin
Libish Varghese Jacob18-Jul-12 1:07
Libish Varghese Jacob18-Jul-12 1:07 
GeneralDocument class Pin
Keck20-Oct-03 5:28
Keck20-Oct-03 5:28 
GeneralRe: Document class Pin
John M. Drescher20-Oct-03 5:44
John M. Drescher20-Oct-03 5:44 
GeneralRe: Document class Pin
Keck20-Oct-03 6:12
Keck20-Oct-03 6:12 
QuestionHow to block Net access Pin
Mourad DEBBAH20-Oct-03 4:55
Mourad DEBBAH20-Oct-03 4:55 
AnswerRe: How to block Net access Pin
Joe Woodbury20-Oct-03 6:05
professionalJoe Woodbury20-Oct-03 6:05 
AnswerRe: How to block Net access Pin
Ravi Bhavnani20-Oct-03 6:32
professionalRavi Bhavnani20-Oct-03 6:32 
AnswerRe: How to block Net access Pin
David Crow20-Oct-03 7:44
David Crow20-Oct-03 7:44 
GeneralRe: How to block Net access Pin
Mourad DEBBAH21-Oct-03 5:41
Mourad DEBBAH21-Oct-03 5:41 
QuestionOnHScroll for CSliderCtrl runs 3 times - why? Pin
ns20-Oct-03 4:43
ns20-Oct-03 4:43 
AnswerOnHScroll --- further question Pin
ns20-Oct-03 5:28
ns20-Oct-03 5:28 
GeneralRe: OnHScroll --- further question Pin
Ravi Bhavnani20-Oct-03 6:15
professionalRavi Bhavnani20-Oct-03 6:15 
GeneralRe: OnHScroll --- further question Pin
ns20-Oct-03 7:49
ns20-Oct-03 7:49 
GeneralRe: OnHScroll --- further question Pin
Ravi Bhavnani20-Oct-03 7:56
professionalRavi Bhavnani20-Oct-03 7:56 
GeneralRe: OnHScroll --- further question Pin
ns20-Oct-03 9:59
ns20-Oct-03 9:59 
GeneralRe: OnHScroll --- further question Pin
Ravi Bhavnani20-Oct-03 10:07
professionalRavi Bhavnani20-Oct-03 10:07 
GeneralRe: OnHScroll --- further question Pin
Rafael Fernández López20-Oct-03 6:34
Rafael Fernández López20-Oct-03 6:34 
Generalaccelerators and mdi Pin
godzooky20-Oct-03 4:35
godzooky20-Oct-03 4:35 
i have a mdi app (using vc++ 7) and i'm trying to enable keyboard accelerators. when there is no document open, the accelerators work fine. however, when a document is open, the accelerators do not work. i added a HACCEL member to my view class, initialized it with a call to ::LoadAccelerators() and overrode PreTranslateMessage() like so,

BOOL MyFormViewView::PreTranslateMessage(MSG* pMsg)
{
if ( CFormView::PreTranslateMessage(pMsg) )
return TRUE;

return ((FAccelTable != NULL) && ::TranslateAccelerator(m_hWnd, FAccelTable, pMsg));
}

as far as i can tell, FAccelTable is initialized properly.

what am i doing wrong?

thanks.

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.