Click here to Skip to main content
15,911,711 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Using "extern" Pin
Code-o-mat1-Dec-08 4:08
Code-o-mat1-Dec-08 4:08 
GeneralRe: Using "extern" Pin
krishnakumartm1-Dec-08 4:17
krishnakumartm1-Dec-08 4:17 
GeneralRe: Using "extern" Pin
Code-o-mat1-Dec-08 4:53
Code-o-mat1-Dec-08 4:53 
AnswerRe: Using "extern" Pin
CPallini1-Dec-08 5:41
mveCPallini1-Dec-08 5:41 
QuestionFocus rectangle on CDialogBox button Pin
J. Landsheer1-Dec-08 3:54
J. Landsheer1-Dec-08 3:54 
QuestionRe: Focus rectangle on CDialogBox button Pin
David Crow1-Dec-08 10:22
David Crow1-Dec-08 10:22 
AnswerRe: Focus rectangle on CDialogBox button Pin
J. Landsheer2-Dec-08 3:32
J. Landsheer2-Dec-08 3:32 
AnswerRe: Focus rectangle on CDialogBox button Pin
J. Landsheer9-Dec-08 2:34
J. Landsheer9-Dec-08 2:34 
To answer myself (and maybe some others who have a similar problem):

It's a Win2000/WinXP-feature that when a dialogbox is invoked by the mouse (for example by clicking a menu item in the parent window) all accelerator cues and focus rectangles in the dialogbox are disabled (until you touch the ALT- or TAB-key).
However: when you invoke the dialogbox by the keyboard (for example by touching ALT+I on a menu item 'Invoke Dialogbox'), accelerator cues and focus rectangles in the dialogbox are enabled!!!

You can control this i.m.h.o. useless feature from the Desktop Control Panel, under Appearance, Effects, "Hide underlined letters for keyboard navigation until I press the Alt key".

Another way to do it, is to handle the WM_UPDATEUISTATUS message yourself:
make a MESSAGE_MAP-entry 'ON_WM_UPDATEUISTATE()' and let the 'OnUpdateUIState(UINT p1, UINT p2)' do nothing.

If Class-Wizard doesn't support the WM_UPDATEUISTATE-message, you have to define it yourself:

#define WM_UPDATEUISTATE 0x0128<br />
<br />
#define ON_WM_UPDATEUISTATE() \<br />
	{ WM_UPDATEUISTATE, 0, 0, 0, AfxSig_vww, \<br />
		(AFX_PMSG)(AFX_PMSGW) \<br />
		(static_cast< void (AFX_MSG_CALL CWnd::*)(UINT, UINT) > (OnUpdateUIState)) },<br />

Questionhow to give gray color Pin
Member 46556851-Dec-08 2:13
Member 46556851-Dec-08 2:13 
QuestionRe: how to give gray color Pin
CPallini1-Dec-08 2:23
mveCPallini1-Dec-08 2:23 
AnswerRe: how to give gray color Pin
Member 46556851-Dec-08 3:12
Member 46556851-Dec-08 3:12 
GeneralRe: how to give gray color Pin
CPallini1-Dec-08 3:20
mveCPallini1-Dec-08 3:20 
AnswerRe: how to give gray color Pin
SandipG 1-Dec-08 3:20
SandipG 1-Dec-08 3:20 
AnswerRe: how to give gray color Pin
Alan Balkany1-Dec-08 4:04
Alan Balkany1-Dec-08 4:04 
AnswerRe: how to give gray color Pin
Hamid_RT1-Dec-08 4:35
Hamid_RT1-Dec-08 4:35 
Questionlocked chm file. Pin
n1pabs1-Dec-08 1:56
n1pabs1-Dec-08 1:56 
AnswerRe: locked chm file. Pin
James R. Twine1-Dec-08 4:21
James R. Twine1-Dec-08 4:21 
GeneralRe: locked chm file. Pin
n1pabs1-Dec-08 4:49
n1pabs1-Dec-08 4:49 
QuestionCRectTracker with rotate feature Pin
PavelAndreevich1-Dec-08 1:54
PavelAndreevich1-Dec-08 1:54 
AnswerRe: CRectTracker with rotate feature Pin
Laan821-Dec-08 2:13
Laan821-Dec-08 2:13 
GeneralRe: CRectTracker with rotate feature Pin
PavelAndreevich1-Dec-08 2:22
PavelAndreevich1-Dec-08 2:22 
GeneralRe: CRectTracker with rotate feature Pin
Laan821-Dec-08 2:33
Laan821-Dec-08 2:33 
GeneralRe: CRectTracker with rotate feature Pin
SandipG 1-Dec-08 3:44
SandipG 1-Dec-08 3:44 
GeneralRe: CRectTracker with rotate feature Pin
PavelAndreevich1-Dec-08 5:36
PavelAndreevich1-Dec-08 5:36 
QuestionGetNextItem is not working Pin
Pryabu1-Dec-08 1:32
Pryabu1-Dec-08 1:32 

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.