Re: Change Window CE Caption Size and Font



In my application, i create a main window and when i would create a listbox
, i create a child window and it's this caption that i would change font.

In fact i would change my window Caption font (WS_CAPTION option in
createwindowEx).
What you told me is about changing all window font except the caption.
So i just would change the caption font , size of a window ...

Sorry if my explanation are quite bad.

Thanks for your help.


"fred_d" <duchassin@xxxxxxxxx> a écrit dans le message de news:
fkt221$r27$1@xxxxxxxxxxxxxxxxxxxxx
Thanks a lot.

It's working now.
I've made a mistake in sendmessage function.

Thanks

"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT
com> a écrit dans le message de news:
eMRvZiyQIHA.2000@xxxxxxxxxxxxxxxxxxxxxxx
Your use of the word "caption" is confusing me. You can change the font
used by a CONTROL, by sending it WM_SETFONT:

-----

// Try to set the font for the listbox to something else.
LOGFONT lf;
HDC hDC = GetDC( hDlg );
lf.lfHeight = -(int)MulDiv(18, GetDeviceCaps(hDC, LOGPIXELSY), 72);
ReleaseDC( hDlg, hDC );
lf.lfWidth = 0;
lf.lfEscapement = 0;
lf.lfOrientation = 0;
lf.lfWeight = FW_NORMAL;
lf.lfItalic = FALSE;
lf.lfUnderline = FALSE;
lf.lfStrikeOut = FALSE;
lf.lfCharSet = ANSI_CHARSET;
lf.lfOutPrecision = OUT_DEFAULT_PRECIS;
lf.lfClipPrecision = CLIP_DEFAULT_PRECIS;
lf.lfQuality = DEFAULT_QUALITY;
lf.lfPitchAndFamily = DEFAULT_PITCH | FF_DONTCARE;
_tcscpy( lf.lfFaceName, _T( "Tahoma" ) );
HFONT hfont = CreateFontIndirect( &lf );
SendMessage( GetDlgItem( hDlg, IDC_SHARELIST ), WM_SETFONT,
(WPARAM)hfont, MAKELPARAM( TRUE, 0 ) );

-----

There's no "caption" involved in *any* listbox, so I don't know what you
mean by that, but the text inside the listbox is written using the font
set as above.

Paul T.

"fred_d" <duchassin@xxxxxxxxx> wrote in message
news:fke3um$5rv$1@xxxxxxxxxxxxxxxxxxxxx
No excuse me.
I'm making an application and i just want to change the Caption style.
It's only for may application. I use the caption property of my listbox
window and i would change the size of title.

Thanks


"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam
DOT com> a écrit dans le message de news:
er3zy4xQIHA.748@xxxxxxxxxxxxxxxxxxxxxxx
You're talking about a top-level window? You could change the system
font, I guess, but, no, there's not a reasonable way to change the
method of display of just *one* top-level window to center the title on
the title bar, change the font, etc.

Paul T.

"fred_d" <duchassin@xxxxxxxxx> wrote in message
news:fke0mv$4ca$2@xxxxxxxxxxxxxxxxxxxxx
Hi,

I'm working with EVC and Win CE 5.

I create a list box in a window and i would change the caption style.
Is it possible to change the caption font size of a window, to change
the font , or to center the caption in the window ?

Thanks a lot.











.



Relevant Pages

  • Re: Change Window CE Caption Size and Font
    ... and *ALWAYS* a child window of another window, ... Do you know how can i draw this control IN my main window. ... i make a new window with a caption. ... the application font is used to ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: Change Window CE Caption Size and Font
    ... // Try to set the font for the listbox to something else. ... I'm making an application and i just want to change the Caption style. ... window and i would change the size of title. ... DOT com> a écrit dans le message de news: ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: Change Window CE Caption Size and Font
    ... Do you know how can i draw this control IN my main window. ... The caption in my listview window seems to be 20. ... the application font is used to ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: Listbox text size
    ... Life of the _window_ using the font (in this case, the ListBox). ...
    (microsoft.public.pocketpc.developer)
  • Re: Change Window CE Caption Size and Font
    ... the application font is used to draw the ... caption and you can change that globally for the whole device and every ... but you can't change it just for one window. ... // Try to set the font for the listbox to something else. ...
    (microsoft.public.windowsce.embedded.vc)