Click here to Skip to main content
15,891,951 members
Articles / Desktop Programming / MFC

Pretty WinAPI Class

Rate me:
Please Sign up or sign in to vote.
4.90/5 (36 votes)
23 May 20074 min read 96.2K   2.7K   80  
New library version that is not WTL/MFC dependent
/*
 * swc.h	1.0		23/09/2004
 *
 * Copyright 2005 Francisco Campos. All rights reserved.
 * BEYONDATA  PROPRIETARY. Use is subject to license terms.
 *
 *			 \|||/
 *			 |o_o|
 *	----o00o-------o00o---      
 *  you should include all new headers class in thi header
 *
 *****/


#ifndef __SWC_H
#define __SWC_H

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000

#include <windows.h>
#include <shellapi.h>
// C RunTime Header Files
#include <stdlib.h>
#include <malloc.h>
#include <memory.h>
#include <tchar.h>
#include <commctrl.h>
#include <commdlg.h>
#include <Time.h>
#include <resource.h>

#define BASE_STATUS_BAR  		0x999111
#define BASE_TOOLTIPS_CLASS 	0x9112
#define BASE_TOOLBAR_CLASS  	0x9113
#define ID_MDI_FIRSTCHILD   	0x5000
#define IDC_HSPLITBAR           30980       // splitter
#define IDC_VSPLITBAR           30981       // splitter
#define RT_TOOLBAR				MAKEINTRESOURCE(241)
#define DOCK_VERT				0x999922
#define DOCK_HORZ				0x999923
#define DOCK_LEFT				0x999924
#define DOCK_RIGHT				0x999925
#define DOCK_TOP				0x999926
#define DOCK_BOTTOM				0x999927

#define BS_FLOATING			0x00234
#define BS_DOCKING			0x00235
#define BS_DOCKINGTAB		0x00236
#define BS_DOCKINGLEFT		0x00237
#define BS_DOCKINGRIGHT		0x00238
#define BS_DOCKINGBOTTOM	0x00239


#define WINNT     0x01
#define WIN2000   0x02
#define WINXP     0x03


class CApp;
_declspec(selectany) CApp* theApp=0;
#include "CMacrodefine.h"
#include "CGdi.h"
#include "NewBConfig.h"
#include "NewBValArray.h"
#include "CWin.h"
#include "CApp.h"
#include "resource1.h"
#include "CDialogControls.h"
#include "CCommonCtrl.h"
#include "CComboboxExt.h"
#include "CMenuSpawn.h"
#include "CSplitter.h"
#include "CToolButton.h"
#include "CFrame.h"
#include "CContainer.h"
#include "CWorkTab.h"
#include "CTabbed.h"
#include "CHeaderCtrl.h"
//#include "CDockManager.h"
#include "CFolder.h"
#include "CMMedia.h"
#include "COutLook.h"
#include "CMainFrame.h"

#ifndef WS_EX_LAYERED
#define WS_EX_LAYERED           0x00080000
#define LWA_COLORKEY            0x00000001
#define LWA_ALPHA               0x00000002
#endif // ndef WS_EX_LAYERED


#pragma comment(lib, "comctl32.lib")

#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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Colombia Colombia
My name is Francisco Campos, A developer as you.I have the title of Engineer of Systems of the Universidad Autonoma de Colombia.My real Job Information Security officer, experience in security assessment, applications, and other related subjects.

Francisco.camposg@outlook.com

Comments and Discussions