Welcome![Sign In][Sign Up]
Location:
Search - cbitmapbutt

Search list

[VC/MFCBmpbt

Description: 在MFC中,要使用图形按钮,一般会选择CBitmapButton类,使用CBitmapButton类可以设置按钮的Normal、Selected、Focused和Disabled四种状态的bmp图像,这四副状态图像要求同尺寸大小,其中normal状态图片是必需提供的。常见调用代码示例: CBitmapButton m_bmpBtn m_bmpBtn.SubclassDlgItem(IDC_BUTTON1,this) //关联控件 //CBitmapButton对象m_bmpBtn的LoadBitmaps函数加载程序内bmp资源。 m_bmpBtn.LoadBitmaps(IDB_BITMAP1,IDB_BITMAP2,IDB_BITMAP3,IDB_BITMAP4) m_bmpBtn.SizeToContent() -In MFC, it is necessary to use the graphical button, choose CBitmapButton general category, the use of CBitmapButton category button you can set the Normal, Selected, Focused and Disabled four state bmp images, which require four state image with the size, in which normal state image provided is necessary. Common call sample code: CBitmapButton m_bmpBtn m_bmpBtn.SubclassDlgItem (IDC_BUTTON1, this)// associated control// CBitmapButton object m_bmpBtn the LoadBitmaps function within the bmp loader resources. m_bmpBtn.LoadBitmaps (IDB_BITMAP1, IDB_BITMAP2, IDB_BITMAP3, IDB_BITMAP4) m_bmpBtn.SizeToContent ()
Platform: | Size: 61440 | Author: james | Hits:

[GUI Developcbitmapbutton

Description: 在BUTTON上显示位图,改变BUTTON-BUTTON displayed in bitmap change BUTTON
Platform: | Size: 1941504 | Author: herong | Hits:

CodeBus www.codebus.net