CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 1999
    Location
    Germany
    Posts
    238

    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.


  2. #2
    Join Date
    Oct 1999
    Location
    India
    Posts
    8

    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 !!

  3. #3
    Join Date
    Oct 1999
    Location
    India
    Posts
    8

    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
  •  





Click Here to Expand Forum to Full Width

Featured