Click to See Complete Forum and Search --> : Windows CE - CaptionBar OK


mdangers
October 16th, 1999, 12:00 PM
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.

Waseem Anis
October 17th, 1999, 11:38 PM
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 !!

Waseem Anis
October 18th, 1999, 12:24 AM
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 !!