89 lines
3.1 KiB
C
89 lines
3.1 KiB
C
/*---------------------------------------------------------------------------*/
|
|
// Author : hiyohiyo
|
|
// Mail : hiyohiyo@crystalmark.info
|
|
// Web : https://crystalmark.info/
|
|
// License : MIT License
|
|
/*---------------------------------------------------------------------------*/
|
|
|
|
#pragma once
|
|
|
|
//------------------------------------------------
|
|
// Naming Conventions
|
|
//------------------------------------------------
|
|
// BOOL bXxxxYyyy
|
|
// HANDLE hXxxxYyyy
|
|
// Pointer pXxxxYyyy
|
|
// Function SampleFunction
|
|
// Variable sampleVariable
|
|
// Const Value ConstVaiable
|
|
// Member Variable m_XxxxYyyy
|
|
|
|
//------------------------------------------------
|
|
// Order for C*****Fx Control
|
|
//------------------------------------------------
|
|
// Control > Draw Control > Image > Font > Mouse > ToolTip
|
|
//
|
|
|
|
//------------------------------------------------
|
|
// Utility Macros
|
|
//------------------------------------------------
|
|
|
|
#define SAFE_DELETE(p) {if(p){delete (p);(p)=NULL;}}
|
|
|
|
#if _MSC_VER > 1310
|
|
#define MENU_MODIFY_MENU menu->ModifyMenu
|
|
#define SUBMENU_MODIFY_MENU subMenu.ModifyMenu
|
|
#else
|
|
#define MENU_MODIFY_MENU if(!IsNT3())menu->ModifyMenu
|
|
#define SUBMENU_MODIFY_MENU if(!IsNT3())subMenu.ModifyMenu
|
|
#endif
|
|
|
|
//------------------------------------------------
|
|
// WM_APP
|
|
//------------------------------------------------
|
|
// WM_APP + 0x0000-0x0BFF: User Application
|
|
// WM_APP + 0x0C00-0x0FFF: Project Priscilla
|
|
// WM_APP + 0x0C00-0x0CFF: Theme
|
|
// WM_APP + 0x0D00-0x0DFF: Language
|
|
// WP_APP + 0x0E00-0x0FFF: Reserved
|
|
// WM_APP + 0x1000-0x3FFF: User Application
|
|
|
|
#define WM_THEME_ID (WM_APP + 0x0C00)
|
|
#define WM_LANGUAGE_ID (WM_APP + 0x0D00)
|
|
|
|
//------------------------------------------------
|
|
// TIMER ID
|
|
//------------------------------------------------
|
|
// 0x0000 - 0x0FFF: Project Priscilla
|
|
// 0x1000 - : User Application
|
|
|
|
static const int TimerUpdateDialogSizeDpiChanged = 0x0001;
|
|
static const int TimerUpdateDialogSizeDisplayChange = 0x0002;
|
|
static const int TimerUpdateDialogSizeSysColorChange = 0x0003;
|
|
static const int TimerUpdateDialogSizeSettingChange = 0x0004;
|
|
|
|
//------------------------------------------------
|
|
// Const Values
|
|
//------------------------------------------------
|
|
|
|
static const int ControlImageNormal = 0x0000;
|
|
static const int ControlImageHover = 0x0001;
|
|
static const int ControlImageFocus = 0x0002;
|
|
static const int ControlImageSelected = 0x0003;
|
|
static const int ControlImageDisabled = 0x0004;
|
|
|
|
static const int SystemDraw = 0x0001;
|
|
static const int OwnerDrawImage = 0x0002;
|
|
static const int OwnerDrawGlass = 0x0004;
|
|
static const int OwnerDrawTransparent = 0x0008;
|
|
|
|
static const int ZoomTypeAuto = 0;
|
|
static const int ZoomType050 = 50;
|
|
static const int ZoomType064 = 64;
|
|
static const int ZoomType075 = 75;
|
|
static const int ZoomType100 = 100;
|
|
static const int ZoomType125 = 125;
|
|
static const int ZoomType150 = 150;
|
|
static const int ZoomType200 = 200;
|
|
static const int ZoomType250 = 250;
|
|
static const int ZoomType300 = 300; |