Modified version of 4ccEditor for PES for use in ICUP matches.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

57 lines
2.4 KiB

#define OEMRESOURCE //Necessary in order for OBM_CHECK to be defined when
// loading system bitmaps
#define SIZE_CHECK 13 //Typical pixel size of system checkmark icon
#include <Commdlg.h>
#include <windowsx.h> //Provides Win32 macros (e.g. Button_GetCheck())
#include <stdio.h> //C standard I/O functions (fopen, sprintf, etc.)
#include <Shlobj.h> //Provides shell objects
// (SHGetFolderPath(), SHBrowseForFolder(),
// SHGetPathFromIDList(), BROWSEINFO struct)
#include <time.h>
#include <math.h>
//#include <errno.h>
//#include <Uxtheme.h>
//Set to use "Modern" visual style for windows controls:
#pragma comment(linker,"\"/manifestdependency:type='win32' \
name='Microsoft.Windows.Common-Controls' version='6.0.0.0' \
processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
//Dialog procedures:
LRESULT CALLBACK wnd_proc(HWND, UINT, WPARAM, LPARAM);
BOOL CALLBACK aatf_sing_dlg_proc(HWND, UINT, WPARAM, LPARAM);
BOOL CALLBACK aatf_mult_dlg_proc(HWND, UINT, WPARAM, LPARAM);
BOOL CALLBACK aatf_sel_dlg_proc(HWND, UINT, WPARAM, LPARAM);
BOOL CALLBACK aatf_comp_dlg_proc(HWND, UINT, WPARAM, LPARAM);
//Control procedures:
LRESULT CALLBACK lv_cntl_proc(HWND,UINT,WPARAM,LPARAM,UINT_PTR,DWORD_PTR);
LRESULT CALLBACK cb_cntl_proc(HWND,UINT,WPARAM,LPARAM,UINT_PTR,DWORD_PTR);
LRESULT CALLBACK cb2_cntl_proc(HWND,UINT,WPARAM,LPARAM,UINT_PTR,DWORD_PTR);
LRESULT CALLBACK scale_cntl_proc(HWND,UINT,WPARAM,LPARAM,UINT_PTR,DWORD_PTR);
LRESULT CALLBACK scale_static_proc(HWND,UINT,WPARAM,LPARAM,UINT_PTR,DWORD_PTR);
LRESULT CALLBACK onto_tab_proc(HWND,UINT,WPARAM,LPARAM,UINT_PTR,DWORD_PTR);
LRESULT CALLBACK from_tab_proc(HWND,UINT,WPARAM,LPARAM,UINT_PTR,DWORD_PTR);
LRESULT CALLBACK tab_two_dlg_proc(HWND,UINT,WPARAM,LPARAM,UINT_PTR,DWORD_PTR);
LRESULT CALLBACK tab_three_dlg_proc(HWND,UINT,WPARAM,LPARAM,UINT_PTR,DWORD_PTR);
BOOL CALLBACK statDlgProc(HWND, UINT, WPARAM, LPARAM);
BOOL CALLBACK bumpDlgProc(HWND, UINT, WPARAM, LPARAM);
BOOL CALLBACK scale_children(HWND,LPARAM);
BOOL CALLBACK draw_children(HWND,LPARAM);
//Helper functions
void setup_control(HWND,HFONT,SUBCLASSPROC);
void setup_combo(HWND,HFONT,SUBCLASSPROC);
//Global variables
extern HINSTANCE ghinst; //Main window instance
extern HWND ghw_tabcon, ghw_tab1, ghw_tab2, ghw_tab3;
extern HFONT ghFont;
//Main window
void setup_main(HWND);
void setup_tab1(HWND);
void setup_tab2(HWND);
void setup_tab3(HWND);