Re: Setting caption programatically on DialogBox

Tech-Archive recommends: Speed Up your PC by fixing your registry




You can grab it (the dialog handle) in your DlgProc
when processing the WM_INITDIALOG message.


On Wed, 27 Sep 2006 13:38:39 +0200, JB <JB@xxxxxxxxxxxxxx> wrote:

Thanks but i don't have DialogWindow handle i created like this.
The app does not have a main window it will just pop up a skinnable
dialog box.

DLGTEMPLATE *dlgSched = new DLGTEMPLATE;
dlgSched->style = DS_CENTER | WS_SYSMENU | WS_CAPTION | WS_POPUP;
dlgSched->dwExtendedStyle = WS_EX_CAPTIONOKBTN;
dlgSched->cx = 80;
dlgSched->cy = 40;
dlgSched->cdit = 0;
dlgSched->x = 30;
dlgSched->y = 30;
DialogBoxIndirect(g_hInst,dlgSched,NULL,DlgProc);

"voidcoder" <voidcoder@xxxxxxxxx> wrote in message
news:op.tgjatjvz52hq2f@xxxxxxxxxxx

Use SetWindowsText(DialogWindowHandle, _T("your caption"))


On Wed, 27 Sep 2006 13:07:19 +0200, JB <JB@xxxxxxxxxxxxxx> wrote:

Hi, I'm develping PocketPC app, I've created a dialog box by filling in
template DLGTEMPLATE structure. I want to set the caption of the
dialog box programatically. How do i do this? I'm basically creating a
skinnable dialog box in VS2005 C++ are there any samples to do this?

Thanks








.



Relevant Pages

  • Re: Setting caption programatically on DialogBox
    ... or custom messages in your main window ... You can grab it in your DlgProc ... The app does not have a main window it will just pop up a skinnable ... DLGTEMPLATE *dlgSched = new DLGTEMPLATE; ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: Setting caption programatically on DialogBox
    ... Thanks but i don't have DialogWindow handle i created like this. ... The app does not have a main window it will just pop up a skinnable ... DLGTEMPLATE *dlgSched = new DLGTEMPLATE; ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: Setting caption programatically on DialogBox
    ... the client area is slow to be painted, the outline and title bar including ... You can grab it in your DlgProc ... DLGTEMPLATE *dlgSched = new DLGTEMPLATE; ...
    (microsoft.public.windowsce.embedded.vc)