Click here to Skip to main content
15,899,679 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problems with malloc() and typedef struct Pin
cmk16-Nov-08 8:47
cmk16-Nov-08 8:47 
Questionset focus to a control problem on win32 dialogs [modified] Pin
abdolahzadeh15-Nov-08 2:55
abdolahzadeh15-Nov-08 2:55 
AnswerRe: set focus to a control problem on win32 dialogs Pin
Code-o-mat15-Nov-08 3:36
Code-o-mat15-Nov-08 3:36 
GeneralRe: set focus to a control problem on win32 dialogs Pin
abdolahzadeh16-Nov-08 2:43
abdolahzadeh16-Nov-08 2:43 
AnswerRe: set focus to a control problem on win32 dialogs Pin
Mark Salsbery15-Nov-08 7:27
Mark Salsbery15-Nov-08 7:27 
GeneralRe: set focus to a control problem on win32 dialogs Pin
abdolahzadeh16-Nov-08 2:39
abdolahzadeh16-Nov-08 2:39 
QuestionRe: set focus to a control problem on win32 dialogs Pin
Mark Salsbery16-Nov-08 6:05
Mark Salsbery16-Nov-08 6:05 
AnswerRe: set focus to a control problem on win32 dialogs Pin
abdolahzadeh18-Nov-08 3:51
abdolahzadeh18-Nov-08 3:51 
I found that this may be designed intentionally by microsoft. to prove this, create a simple dialog that contains a push buttom, check box or radio box as the first control and create exe file. no ocde modification is needed. now run exe by clicking mouse and not keyboard, you see that the focus rectangle is not present and by pressing TAB or ALT key it appears. now run exe using keyboard and not mouse. the focus rectangle is present. this makes no problem unless the TAB key is controlled by the application returning DLGC_WANTTAB to WM_GETDLGCODE message(subclassing) or the application sets focus to controls by using WM_NEXTDLGCTL. and if there is a lot of push buttons and the user has openned the dialog by mouse and wants to use keyboard to navigate, he or she wonders which control has the focus. using TAB does not restore focus rectangle beacuse the application processes TAB and only sends WN_NEXTDLGCTL to the dialog.

Is there any way to bypass this behavier of controls?(draw focus rectangle even if the dialog is openned by mouse)

Thanks
Abzadeh
GeneralRe: set focus to a control problem on win32 dialogs Pin
Phil Outram20-Sep-10 11:02
Phil Outram20-Sep-10 11:02 
QuestionSetRegistryKey problem, when uninstalling Pin
followait15-Nov-08 0:51
followait15-Nov-08 0:51 
AnswerRe: SetRegistryKey problem, when uninstalling Pin
22491715-Nov-08 17:38
22491715-Nov-08 17:38 
GeneralRe: SetRegistryKey problem, when uninstalling Pin
followait15-Nov-08 18:46
followait15-Nov-08 18:46 
Questiondate and time Pin
Russell'15-Nov-08 0:18
Russell'15-Nov-08 0:18 
AnswerRe: date and time Pin
Hamid_RT15-Nov-08 1:44
Hamid_RT15-Nov-08 1:44 
AnswerRe: date and time Pin
Mark Salsbery15-Nov-08 7:40
Mark Salsbery15-Nov-08 7:40 
QuestionDll Not Found Pin
Aabid15-Nov-08 0:00
Aabid15-Nov-08 0:00 
AnswerRe: Dll Not Found Pin
Hamid_RT15-Nov-08 1:45
Hamid_RT15-Nov-08 1:45 
AnswerRe: Dll Not Found Pin
CPallini15-Nov-08 3:04
mveCPallini15-Nov-08 3:04 
QuestionOpen Excel and write Pin
hellogany14-Nov-08 21:57
hellogany14-Nov-08 21:57 
AnswerRe: Open Excel and write Pin
Hamid_RT14-Nov-08 22:57
Hamid_RT14-Nov-08 22:57 
QuestionPicture Erases Pin
Aabid14-Nov-08 21:04
Aabid14-Nov-08 21:04 
QuestionRe: Picture Erases Pin
Perspx14-Nov-08 22:18
Perspx14-Nov-08 22:18 
AnswerRe: Picture Erases Pin
Aabid14-Nov-08 22:22
Aabid14-Nov-08 22:22 
AnswerRe: Picture Erases Pin
Hamid_RT14-Nov-08 23:00
Hamid_RT14-Nov-08 23:00 
GeneralRe: Picture Erases Pin
Aabid14-Nov-08 23:07
Aabid14-Nov-08 23:07 

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.