Click here to Skip to main content
15,894,646 members
Articles / Desktop Programming / MFC

A skinned dialog in Python and MFC

Rate me:
Please Sign up or sign in to vote.
4.29/5 (4 votes)
24 Jul 2011CPOL3 min read 47.9K   6.6K   35  
Help to make a skinned dialog program easily in Python, XML with a UI window DLL.
#ifndef _GLOBAL_DEFINE
#define _GLOBAL_DEFINE

#define MONITOR_CENTER   0x0001        // center rect to monitor
#define MONITOR_CLIP     0x0000        // clip rect to monitor
#define MONITOR_WORKAREA 0x0002        // use monitor work area
#define MONITOR_AREA     0x0000        // use monitor entire area

#include <string>
#include <vector>
#include <map>
using namespace std;
#pragma warning(disable:4786)

// Resizing Function
CRect GetRelativeRect(CRect& rcParent,CRect& rcObject); // ���� ��ǥ�� ��� ��ǥ�� �ٲ� �ִ� �Լ�

// String to Color
COLORREF StrToClr(string & strColor); // String�� Color������ �ٲ��ִ� �Լ�

// UTF-8 -> Ansi String
CString UTF2ANSI(LPCSTR lpszText);

// Opacity Window
BOOL MakeOpacityWnd(HWND hWnd , INT nOpacityValue, BOOL bAccept);

// Get Dual Monitor Rect
VOID GetMonitorRect(LPRECT prc, UINT flags);

// Get MagneticRect
VOID GetMagneticRect(CRect& rcMonitorRect,CRect& rcWindow);

#endif

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer SEC
Korea (Republic of) Korea (Republic of)
Worked and Working as Windows, Game Software, Mobile Developer.

Comments and Discussions