Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » DEFPUSHBUTTON does not work Collapse All
Subject Author Date
tera tera Aug 17, 2010 - 6:46 PM

Hello.


I set variable declaration of CheckBox in CExtCheckBox.

The setting of the standard button does not work.


I declare CheckBox in CButton

When I assign a focus to CheckBox and push Return Key, DefPushButton is pushed.

However,

I declare CheckBox in CExtCheckBox

Even if I assign a focus to CheckBox and push Return Key, DefPushButton does not become effective.


Because the setting of the standard button does not work, I cannot close a dialog.



 


IDD_SAMPLEDLGMFC_DIALOG DIALOGEX 0, 0, 320, 200 STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU EXSTYLE WS_EX_APPWINDOW CAPTION "SampleDlgMFC" FONT 9, "MS Pゴシック" BEGIN     DEFPUSHBUTTON   "OK",IDOK,260,7,50,14 <--- This does not work     PUSHBUTTON   "CANCEL",IDCANCEL,260,23,50,14     LTEXT    "TODO: ",IDC_STATIC,87,32,200,     8     PUSHBUTTON   "Button1",IDC_BUTTON1,17,15,36,17     PUSHBUTTON   "Button2",IDC_BUTTON2,14,46,51,28     PUSHBUTTON   "Button3",IDC_BUTTON3,17,94,45,26     CONTROL "Check1",IDC_CHECK1,"Button",BS_AUTOCHECKBOX |     WS_TABSTOP,92,103,80,16     CONTROL "Check2",IDC_CHECK2,"Button",BS_AUTOCHECKBOX |     WS_TABSTOP,90,119,96,18     CONTROL "Check3",IDC_CHECK3,"Button",BS_AUTOCHECKBOX |     WS_TABSTOP,91,137,83,25 END


 


 Even if it is declared in CExtCheckBox,

Please teach me the method that DefPushButton becomes effective

Or please revise it


Please answer immediately.


 


 


 

Technical Support Aug 26, 2010 - 4:42 AM

We are sorry for the delay with this answer. The default button issue is already fixed. Please drop us an e-mail to the support mail box at this web site and we will provide you with the source code update.