|
-
October 16th, 1999, 12:00 PM
#1
Windows CE - CaptionBar OK
Hi !
I'm designing a couple of dialogs for a Windows CE - Application.
I would like to place an OK-Button in the Captionbar of these dialogs.
The normal procedure would be to just check the Captionbar OK-property
in the properties-dialog for the dialogs in the resource-editor.
For some reason this property is grayed so I can't select it.
Does anyone know why ??
Regards,
Matthias.
-
October 17th, 1999, 11:38 PM
#2
Re: Windows CE - CaptionBar OK
I think I can help you with that.
For implemeting the OK in the caption bar, you will need to edit the .rc file of your project. In the .rc file you will have to aDD an extended style statement. Something like :
//////////////////////////////////////////
IDD_TRY_DIALOG DIALOG DISCARDABLE 0, 0, 237, 94
STYLE DS_MODALFRAME | DS_SETFOREGROUND | WS_POPUP | WS_CAPTION | WS_SYSMENU
EXSTYLE WS_EX_APPWINDOW | WS_EX_CAPTIONOKBTN
CAPTION "Try"
FONT 8, "MS Sans Serif"
BEGIN
.
.
.
.
.
END
//////////////////////////////////////////
this works fine for me......Luck,
Waseem.
I program therefore I am !!
-
October 18th, 1999, 12:24 AM
#3
Re: Windows CE - CaptionBar OK
I think I can help you with that.
For implemeting the OK in the caption bar, you will need to edit the .rc file of your project. In the .rc file you will have to aDD an extended style statement. Something like :
//////////////////////////////////////////
IDD_TRY_DIALOG DIALOG DISCARDABLE 0, 0, 237, 94
STYLE DS_MODALFRAME | DS_SETFOREGROUND | WS_POPUP | WS_CAPTION | WS_SYSMENU
EXSTYLE WS_EX_APPWINDOW | WS_EX_CAPTIONOKBTN
CAPTION "Try"
FONT 8, "MS Sans Serif"
BEGIN
.
.
.
.
.
END
//////////////////////////////////////////
this works fine for me......Luck,
Waseem.
I program therefore I am !!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|