Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > C++ Programming
|
C++ Programming General discussions for the C++ language. For questions specific to Microsoft's Visual C++ variant, see the Visual C++ forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C++ Programming section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old February 3rd, 2004, 04:05 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 128
Thanks: 0
Thanked 0 Times in 0 Posts
Default Changing the font size in a statusbar

I have had a request to make the font larger in a statusbar control. I can see in the documentation that the Create() function is capable of setting the font, as described below. However, there is no information on how to accomplish that.

// Excerpt from help file

CStatusBar::Create
BOOL Create( CWnd* pParentWnd, DWORD dwStyle = WS_CHILD | WS_VISIBLE | CBRS_BOTTOM, UINT nID = AFX_IDW_STATUS_BAR );

Return Value

Nonzero if successful; otherwise 0.

Parameters

pParentWnd

Pointer to the CWnd object whose Windows window is the parent of the status bar.

dwStyle

The status-bar style. In addition to the standard Windows styles, these styles are supported.

CBRS_TOP Control bar is at top of frame window.


CBRS_BOTTOM Control bar is at bottom of frame window.


CBRS_NOALIGN Control bar is not repositioned when the parent is resized.
nID

The toolbar’s child-window ID.

Remarks

Creates a status bar (a child window) and associates it with the CStatusBar object. Also sets the initial font and sets the status bar’s height to a default value.

CStatusBar Overview | Class Members | Hierarchy Chart


Any help would be greatly appreciated.



Larry Asher
__________________
Larry Asher





Similar Threads
Thread Thread Starter Forum Replies Last Post
Font Size in buttons jmss66 Classic ASP Basics 4 September 20th, 2006 02:13 PM
how to get font ,color,font size of text in win32 satishsatao Visual C++ 0 April 5th, 2006 05:05 AM
font-size problem in CSS crmpicco CSS Cascading Style Sheets 2 August 22nd, 2005 09:31 PM
Access Report Font Size ritag Access 2 November 5th, 2004 11:35 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.