Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

CxStatic: a CStatic control with text wrapping

, 17 Feb 2005
A CStatic control with text wrapping, color, and transparency.
cxstatic_demo.zip
CxStatic_demo
TestCxStatic.exe
cxstatic_src.zip
CxStatic_src
res
logo225x72.bmp
ocean.bmp
TestCxStatic.ico
TestCxStatic.dsp
TestCxStatic.dsw
Widgets
CxStatic
// Microsoft Visual C++ generated resource script.
//
#include "resource.h"

#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "afxres.h"

/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS

/////////////////////////////////////////////////////////////////////////////
// French (France) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_FRA)
#ifdef _WIN32
LANGUAGE LANG_FRENCH, SUBLANG_FRENCH
#pragma code_page(1252)
#endif //_WIN32

#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//

1 TEXTINCLUDE 
BEGIN
    "resource.h\0"
END

2 TEXTINCLUDE 
BEGIN
    "#include ""afxres.h""\r\n"
    "\0"
END

3 TEXTINCLUDE 
BEGIN
    "#define _AFX_NO_SPLITTER_RESOURCES\r\n"
    "#define _AFX_NO_OLE_RESOURCES\r\n"
    "#define _AFX_NO_TRACKER_RESOURCES\r\n"
    "#define _AFX_NO_PROPERTY_RESOURCES\r\n"
    "\r\n"
    "#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_FRA)\r\n"
    "#ifdef _WIN32\r\n"
    "LANGUAGE 12, 1\r\n"
    "#pragma code_page(1252)\r\n"
    "#endif //_WIN32\r\n"
    "#include ""res\\TestCxStatic.rc2""  // non-Microsoft Visual C++ edited resources\r\n"
    "#include ""l.fra\\afxres.rc""          // Standard components\r\n"
    "#endif\r\n"
    "\0"
END

#endif    // APSTUDIO_INVOKED


/////////////////////////////////////////////////////////////////////////////
//
// Icon
//

// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDR_MAINFRAME           ICON                    "res\\TestCxStatic.ico"

/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//

IDD_TESTCXSTATIC_DIALOG DIALOGEX 0, 0, 506, 361
STYLE DS_SETFONT | DS_MODALFRAME | WS_MINIMIZEBOX | WS_POPUP | WS_VISIBLE | 
    WS_CAPTION | WS_SYSMENU
EXSTYLE WS_EX_APPWINDOW
CAPTION "TestCxStatic"
FONT 8, "MS Sans Serif", 0, 0, 0x1
BEGIN
    LTEXT           "",IDC_GRADIENT,159,7,340,25,SS_CENTERIMAGE | WS_BORDER
    COMBOBOX        IDC_COMBO1,13,16,90,51,CBS_DROPDOWNLIST | CBS_SORT | 
                    WS_VSCROLL | WS_TABSTOP
    RTEXT           "CXSTATIC",IDC_TEXT,235,58,109,49,SS_CENTERIMAGE | 
                    WS_BORDER
    EDITTEXT        IDC_EDIT1,117,58,109,49,ES_MULTILINE | ES_AUTOHSCROLL | 
                    ES_WANTRETURN
    LTEXT           "Please Enter some text",IDC_STATIC,116,46,81,11
    LTEXT           "",IDC_STA_BITMAP,31,143,52,36,SS_CENTERIMAGE | 
                    WS_BORDER
    LTEXT           "Control below shows bitmap support (No real transparency)",
                    IDC_STATIC,31,124,147,17
    LTEXT           "",IDC_STA_TRANSPARENT,229,143,133,93,SS_CENTERIMAGE | 
                    WS_BORDER
    CONTROL         130,IDC_STATIC,"Static",SS_BITMAP,229,143,133,92
    LTEXT           "Control below shows transparency support",IDC_STATIC,
                    223,121,147,17
    CTEXT           "",IDC_STAFONT3D,193,257,109,35,SS_CENTERIMAGE
    LTEXT           "CSTATIC",IDC_DEF_STATIC,390,58,109,49,SS_CENTERIMAGE | 
                    WS_BORDER
    CTEXT           "RIGHT CLICK OR CTRL+RIGHT-CLICK",IDC_RESIZEME,307,252,
                    120,44,SS_CENTERIMAGE
    LTEXT           "",IDC_DRAGNDROP,23,263,139,61
END


/////////////////////////////////////////////////////////////////////////////
//
// Version
//

VS_VERSION_INFO VERSIONINFO
 FILEVERSION 1,0,0,1
 PRODUCTVERSION 1,0,0,1
 FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
 FILEFLAGS 0x1L
#else
 FILEFLAGS 0x0L
#endif
 FILEOS 0x4L
 FILETYPE 0x1L
 FILESUBTYPE 0x0L
BEGIN
    BLOCK "StringFileInfo"
    BEGIN
        BLOCK "040C04B0"
        BEGIN
            VALUE "FileDescription", "Application MFC TestCxStatic"
            VALUE "FileVersion", "1, 0, 0, 1"
            VALUE "InternalName", "TestCxStatic"
            VALUE "LegalCopyright", "Copyright (C) 2004"
            VALUE "OriginalFilename", "TestCxStatic.EXE"
            VALUE "ProductName", "Application TestCxStatic"
            VALUE "ProductVersion", "1, 0, 0, 1"
        END
    END
    BLOCK "VarFileInfo"
    BEGIN
        VALUE "Translation", 0x40c, 1200
    END
END


/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//

#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO 
BEGIN
    IDD_TESTCXSTATIC_DIALOG, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 499
        TOPMARGIN, 7
        BOTTOMMARGIN, 354
    END
END
#endif    // APSTUDIO_INVOKED


/////////////////////////////////////////////////////////////////////////////
//
// Bitmap
//

IDB_BITMAP1             BITMAP                  "res\\logo225x72.bmp"
IDB_BITMAP2             BITMAP                  "res\\ocean.bmp"
#endif    // French (France) resources
/////////////////////////////////////////////////////////////////////////////



#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//
#define _AFX_NO_SPLITTER_RESOURCES
#define _AFX_NO_OLE_RESOURCES
#define _AFX_NO_TRACKER_RESOURCES
#define _AFX_NO_PROPERTY_RESOURCES

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_FRA)
#ifdef _WIN32
LANGUAGE 12, 1
#pragma code_page(1252)
#endif //_WIN32
#include "res\TestCxStatic.rc2"  // non-Microsoft Visual C++ edited resources
#include "l.fra\afxres.rc"          // Standard components
#endif

/////////////////////////////////////////////////////////////////////////////
#endif    // not APSTUDIO_INVOKED

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

Vincent Richomme
Researcher
France France
I am currently working as software engineer in a french transport company.
I am interested in C++, MFC, wxWindows and .NET environnement.

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.141223.1 | Last Updated 17 Feb 2005
Article Copyright 2004 by Vincent Richomme
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid