亚洲免费在线-亚洲免费在线播放-亚洲免费在线观看-亚洲免费在线观看视频-亚洲免费在线看-亚洲免费在线视频

CExtStatusControlBar - Managing status bar's

系統(tǒng) 2330 0
Is your email address OK? You are signed up for our newsletters but your email address is either unconfirmed, or has not been reconfirmed in a long time. Please click here to have a confirmation email sent so we can confirm your email address and start sending you newsletters again.
<!-- Main Page Contents Start --><!-- Article Starts -->

Introduction

The article introduces an enhanced version of the standard MFC status bar control. The new class should enable you to easily add/remove panes to/from the application's status bar, on-the-fly. The status bar's panes may contain almost any control you need: buttons, edits, animations, progress bars, and etc.

The class is partially based on the status bar presented in the freeware version of the Prof-UIS library available here .

How to use it

The CExtStatusControlBar class is simple to use. To add it to your project, please follow the steps below:

  1. Put its source files ( CExtStatusControlBar.cpp and CExtStatusControlBar.h ) into the proper folder and add their file names to your Visual Studio project.
  2. Include its header to the appropriate header file. If you plan to use CExtStatusControlBar in several places of your application, it's reasonable to add it to your stdafx.h file.
    Collapse Copy Code
              
                #include
              
              
                
                  "
                
                
                  CExtStatusControlBar.h"
                
              
            
  3. If you used CStatusBar , you should replace it with CExtStatusControlBar everywhere in the project.
    Collapse Copy Code
              CExtStatusControlBar  m_wndStatusBar;
            

Sample

The StatusPanes sample project shows how to use the class in practice (including how to place controls into the control bar's panes).

List of methods

  • BOOL AddPane(UINT nID, int nIndex)

    Inserts a new pane into the status bar.

    Parameters
    nID
    ID of the pane to be added.
    nIndex
    The index of the newly created pane.
    Return Value
    Nonzero if successful.

  • BOOL RemovePane(UINT nID)

    Deletes a pane from the status bar.

    Parameters
    nID
    ID of the pane to be deleted.
    Return Value
    Nonzero if successful.

  • BOOL AddPaneControl(CWnd* pWnd, UINT nID, BOOL bAutoDestroy)

    Inserts a control into a specified pane.

    Parameters
    pWnd
    Pointer to the control to be added.
    nID
    ID of the target pane.
    bAutoDestroy
    Specifies whether the control should be destroyed when the pane is removed.
    Return Value
    Nonzero if successful; otherwise zero.

  • BOOL AddPaneControl(HWND hWnd, UINT nID, BOOL bAutoDestroy)

    Inserts a control into a specified pane.

    Parameters
    hWnd
    Handle to the control to be added.
    nID
    ID of the target pane.
    bAutoDestroy
    Specifies whether the control should be destroyed when the pane is removed.
    Return Value
    Nonzero if successful.

  • void DisableControl( int nIndex, BOOL bDisable=TRUE)

    Disables the control at a specified pane.

    Parameters
    nIndex
    Index of the pane.
    bDisable
    Flag specifying that the control is enabled if it is set to TRUE .

  • int GetPanesCount() const

    Retrieves the current number of panes in the status bar.


  • void SetPaneWidth( int nIndex, int nWidth)

    Sets a width in pixels for a specified pane.

    Parameters
    nIndex
    Index of the pane.
    nStyle
    Width to be set.


  • void SetPaneInfo( int nIndex, UINT nID, UINT nStyle, int cxWidth)

    Sets the specified pane to a new ID, style and width.

    Parameters
    nIndex
    Index of the pane whose style is to be set.
    nID
    New ID for the pane.
    nStyle
    New style for the pane.
    cxWidth
    New width for the pane.

  • void SetPaneStyle( int nIndex, UINT nStyle)

    Sets the style of a status bar's pane. A pane's style determines how the pane appears.

    Parameters
    nIndex
    Index of the pane whose style is to be set.
    nStyle
    Style of the pane whose style is to be set.

Copyright

You can use these sources for absolutely free.

Reporting bugs

Your questions, suggestions and bug reports may be posted either to the forum below or to the forum at the Prof-UIS website.

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

CExtStatusControlBar - Managing status bar's panes is getting easier


更多文章、技術(shù)交流、商務(wù)合作、聯(lián)系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號(hào)聯(lián)系: 360901061

您的支持是博主寫作最大的動(dòng)力,如果您喜歡我的文章,感覺(jué)我的文章對(duì)您有幫助,請(qǐng)用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點(diǎn)擊下面給點(diǎn)支持吧,站長(zhǎng)非常感激您!手機(jī)微信長(zhǎng)按不能支付解決辦法:請(qǐng)將微信支付二維碼保存到相冊(cè),切換到微信,然后點(diǎn)擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對(duì)您有幫助就好】

您的支持是博主寫作最大的動(dòng)力,如果您喜歡我的文章,感覺(jué)我的文章對(duì)您有幫助,請(qǐng)用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長(zhǎng)會(huì)非常 感謝您的哦!!!

發(fā)表我的評(píng)論
最新評(píng)論 總共0條評(píng)論
主站蜘蛛池模板: 久久精品在线免费观看 | 成人网18免费网站在线 | 日韩一区二区视频在线观看 | 热99re久久精品这里都是免费 | 奇米888在线看奇米999 | 国产在线精品一区二区高清不卡 | 久久久久亚洲视频 | 亚洲精品一区二区在线播放 | 天天干天天玩 | 又黑又粗又硬欧美视频在线观看 | 久草在线最新视频 | 人人干夜夜操 | 国产成人精品免费视频网页大全 | 97精品国产自在现线免费 | 日产精品一区二区 | 日韩亚洲一区中文字幕 | 伊人伊色 | 久久综合精品国产一区二区三区 | 久久精品福利 | 四虎影视884a精品国产古代 | 久久91精品综合国产首页 | www.色综合 | 夜福利视频 | 免费国产视频 | ww亚洲ww在线观看国产 | 国产伦精品一区二区三区女 | 欧美亚洲国产色综合 | 91成人爽a毛片一区二区 | 欧美jizzhd欧美巨大 | 91精品全国免费观看 | 四虎影视最新2019百度 | 奇米影视奇米色777欧美 | 亚洲第九十七页 | 国产一区中文字幕在线观看 | 一级毛片牲交大片 | 日本视频播放免费线上观看 | 国产精品不卡视频 | 奇米影视7777久久精品人人爽 | 精品国产一区二区三区不卡在线 | 偷亚洲偷国产欧美高清 | 一级欧美在线的视频 |