- // Dlg1.cpp : implementation file
- //
- #include "stdafx.h"
- #include "JS界面.h"
- #include "Dlg1.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /
- // Dlg1 dialog
- Dlg1::Dlg1(CWnd* pParent /*=NULL*/)
- : CDialog(Dlg1::IDD, pParent)
- {
- //{{AFX_DATA_INIT(Dlg1)
- // NOTE: the ClassWizard will add member initialization here
- //}}AFX_DATA_INIT
- }
- void Dlg1::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(Dlg1)
- DDX_Control(pDX, IDC_CHECK1, m_h);
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(Dlg1, CDialog)
- //{{AFX_MSG_MAP(Dlg1)
- ON_WM_PAINT()
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /
- // Dlg1 message handlers
- void Dlg1::OnPaint()
- {
- CPaintDC dc(this); // device context for painting
- // TODO: Add your message handler code here
- CBitmap bitmap;CBitmap* oldbitmap;
- CDC MemDC;
- MemDC.CreateCompatibleDC(&dc);
- bitmap.LoadBitmap(IDB_BITMAP1);
- oldbitmap=MemDC.SelectObject(&bitmap);
- dc.BitBlt(0,0,443,195,&MemDC,0,0,SRCCOPY);
- dc.SetBkMode(TRANSPARENT);
- MemDC.SelectObject(oldbitmap);
- CDialog::OnPaint();
- // Do not call CDialog::OnPaint() for painting messages
- }
js界面
最新推荐文章于 2024-04-09 23:39:48 发布