WINODWS编程 UI类

时间:2012-11-29 18:06:56
【文件属性】:

文件名称:WINODWS编程 UI类

文件大小:1.02MB

文件格式:RAR

更新时间:2012-11-29 18:06:56

登陆界面

一个简单的登陆UI类 CUIPicture::CUIPicture(void) { m_hide = false; } CUIPicture::~CUIPicture(void) { } VOID CUIPicture::Init(int x, int y, HDC& hdc,char * strName ) { nX = x; nY = y; m_hdc =&hdc; m_Hdc = CreateCompatibleDC( hdc ); m_Img = (HBITMAP)LoadImage(NULL,strName,IMAGE_BITMAP,0,0,LR_LOADFROMFILE|LR_CREATEDIBSECTION); GetObject(m_Img,sizeof(BITMAP),&m_bmp); SelectObject(m_Hdc,m_Img); } VOID CUIPicture::Draw() { if(!m_hide) { BitBlt(*m_hdc,nX,nY,m_bmp.bmWidth,m_bmp.bmHeight,m_Hdc,0,0,SRCCOPY); } } int CUIPicture::GetWidth() { return m_bmp.bmWidth; } int CUIPicture::GetHeight() { return m_bmp.bmHeight; } VOID CUIPicture::Hide() { m_hide = true; } VOID CUIPicture::Show() { m_hide = false; }


【文件预览】:
UI
----listOkMouseover.bmp(10KB)
----UIManager.h(471B)
----stdafx.cpp(210B)
----small.ico(23KB)
----UItest.cpp(8KB)
----Resource.h(689B)
----UIEditbox.h(665B)
----buttonNobasic.bmp(11KB)
----listdownbasic.bmp(2KB)
----bg.bmp(1.36MB)
----buttonOkmouseover.bmp(11KB)
----listDownMouseup.bmp(2KB)
----stdafx.h(365B)
----buttonnomouseover.bmp(11KB)
----UIImage.cpp(534B)
----listUpMouseup.bmp(2KB)
----UItest.suo(29KB)
----listbg.bmp(279KB)
----UIText.cpp(383B)
----UI.png(24KB)
----listNobasic.bmp(10KB)
----UIImage.h(322B)
----buttonOkmouseup.bmp(11KB)
----list.bmp(85KB)
----listUpbasic.bmp(2KB)
----Toolbar.bmp(175KB)
----listOkbasic.bmp(10KB)
----UIButton.cpp(1KB)
----UIObject.h(364B)
----UItest.exe(220KB)
----listdownMouseover.bmp(2KB)
----UIEditbox.cpp(1KB)
----UIButton.h(688B)
----buttonOkbasic.bmp(11KB)
----UIManager.cpp(694B)
----UItest.vcproj(6KB)
----UIText.h(306B)
----editbox.bmp(21KB)
----UItest.h(39B)
----listNoMouseover.bmp(10KB)
----UIPicture.h(573B)
----UItest.sln(872B)
----UIPicture.cpp(805B)
----listOkMouseup.bmp(10KB)
----UIObject.cpp(356B)
----UIListbox.cpp(1KB)
----buttonNOmouseup.bmp(11KB)
----listnoMouseup.bmp(10KB)
----UIListbox.h(782B)
----UItest.ico(23KB)
----listupMouseover.bmp(2KB)
----ReadMe.txt(2KB)

网友评论