Thread View: borland.public.cppbuilder.nativeapi
5 messages
5 total messages
Started by JD
Fri, 29 Jun 2007 17:32
CreateWindowEx
Author: JD
Date: Fri, 29 Jun 2007 17:32
Date: Fri, 29 Jun 2007 17:32
15 lines
1513 bytes
1513 bytes
I've added a button to a dialog using CreateWindowEx and
everything works as intended except that the caption is
bold text. How do I get rid of the bold?
HWND hLayout = ::CreateWindowEx( ::GetWindowLong(hOK, GWL_EXSTYLE), //
copy the IDOK button
"BUTTON", "Layout",
::GetWindowLong(hOK, GWL_STYLE) &
~BS_DEFPUSHBUTTON,
R.left, R.top, R.right - R.left,
R.bottom - R.top,
hDlg, (HMENU)IDLAYOUT, HInstance,
NULL );
~ JD
Re: CreateWindowEx
Author: Remy Lebeau (TeamB)
Date: Fri, 29 Jun 2007 18:10
Date: Fri, 29 Jun 2007 18:10
13 lines
1301 bytes
1301 bytes
"JD" <nospam@nospam.com> wrote in message news:4685424c@newsgroups.borland.com... > I've added a button to a dialog using CreateWindowEx > and everything works as intended except that the caption > is bold text. How do I get rid of the bold? You are not setting a font to the window, so a default font is being used. Look at the WM_SETFONT message. Gambit
Re: CreateWindowEx
Author: JD
Date: Sat, 30 Jun 2007 04:59
Date: Sat, 30 Jun 2007 04:59
19 lines
1510 bytes
1510 bytes
"Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> wrote:
>
> [...] Look at the WM_SETFONT message.
Thanks. It's all working as desired now but I have a couple of
questions:
Is this ok to do?
::SendMessage( hMargins,
WM_SETFONT,
(WPARAM)::SendMessage(hOK, WM_GETFONT, NULL, NULL),
TRUE );
Do I need to explicitly destroy the button created using
CreateWindowEx (I set it's parent as the dialog)? IOW,
does it work the same as the VCL?
~ JD
Re: CreateWindowEx
Author: Remy Lebeau (TeamB)
Date: Mon, 02 Jul 2007 17:18
Date: Mon, 02 Jul 2007 17:18
15 lines
1163 bytes
1163 bytes
"JD" <nospam@nospam.com> wrote in message news:4685e327@newsgroups.borland.com... > Is this ok to do? Yes. > Do I need to explicitly destroy the button created using > CreateWindowEx (I set it's parent as the dialog)? No. Gambit
Re: CreateWindowEx
Author: JD
Date: Sat, 07 Jul 2007 17:54
Date: Sat, 07 Jul 2007 17:54
3 lines
1092 bytes
1092 bytes
Thank you! ~ JD
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads