首先:把下面这个头文件加入到你要实现动态显示的工程中:
#if !defined(AFX_TOOLTIPWND_H__2C52D3E4_2F5B_11D2_8FC9_000000000000__INCLUDED_) #define AFX_TOOLTIPWND_H__2C52D3E4_2F5B_11D2_8FC9_000000000000__INCLUDED_
#if _MSC_VER >= 1000 #pragma once #endif // _MSC_VER >= 1000
// ToolTipWnd.h : header file
// Acknowledgements: // Thanks to Venkatesh who helped me in calculating the i...
UI界面阅读全文
1、图片的显示 // 下面是GDI+要使用的几个头文件 #ifndef ULONG_PTR #define ULONG_PTR unsigned long* #endif #include "Gdiplus.h" #include <afxole.h> #include <Atlbase.h>
Gdiplus::GdiplusStartupInput m_gdiplusStartupInput; ULONG_PTR m_gdiplusToken; // 初始化GDI+库 void InitGuiPlus() { Gdiplus::GdiplusStartup(&m_gdiplusToken, &m_gdiplus...
GDI, UI界面阅读全文
1、IPicture::Render简介
HRESULT Render( HDC hdc, //Handle of device context on which to render the image long x, //Horizontal position of image in hdc long y, //Vertical position of image in hdc long cx, //Horizontal dimension of destination rectangle long cy, //Vertical dimension of destination rectangle OLE_XPOS_HIMETRIC xSrc, //Horizontal offset in source picture OLE...
COM, UI界面阅读全文
// MySkinDlg.cpp : implementation file //
#include "stdafx.h" #include "MySkin.h" #include "MySkinDlg.h"
#ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif
///////////////////////////////////////////////////////////////////////////// // CAboutDlg dialog used for App About
class CAboutDlg : public CDia...
UI界面阅读全文