soui 5.0.0.1
Soui5 Doc
 
Loading...
Searching...
No Matches
SDragWnd.h
1#ifndef __SDRAGWND__H__
2#define __SDRAGWND__H__
3
4#include <core/SNativeWnd.h>
5
6SNSBEGIN
7
8class SDragWnd : public SNativeWnd {
9 public:
10 SDragWnd(void);
11 ~SDragWnd(void);
12
13 static BOOL BeginDrag(HBITMAP hBmp, POINT ptHot, COLORREF crKey, BYTE byAlpha, DWORD dwFlags);
14 static void DragMove(POINT pt);
15 static void EndDrag();
16
17 protected:
18 void OnPaint(HDC dc);
19
20 BEGIN_MSG_MAP_EX(SDragWnd)
21 MSG_WM_PAINT(OnPaint)
22 END_MSG_MAP()
23
24 CPoint m_ptHot;
25 HBITMAP m_bmp;
26
27 static SDragWnd *s_pCurDragWnd;
28};
29
30SNSEND
31
32#endif // __SDRAGWND__H__
Interface and Implementation for Native Window Handling.
Class for managing native window operations.
Definition SNativeWnd.h:126