Re: Setting caption programatically on DialogBox
- From: voidcoder <voidcoder@xxxxxxxxx>
- Date: Wed, 27 Sep 2006 13:53:51 +0200
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
.
- Follow-Ups:
- References:
- Setting caption programatically on DialogBox
- From: JB
- Re: Setting caption programatically on DialogBox
- From: voidcoder
- Re: Setting caption programatically on DialogBox
- From: JB
- Setting caption programatically on DialogBox
- Prev by Date: Re: Setting caption programatically on DialogBox
- Next by Date: Re: Setting caption programatically on DialogBox
- Previous by thread: Re: Setting caption programatically on DialogBox
- Next by thread: Re: Setting caption programatically on DialogBox
- Index(es):
Relevant Pages
|