2005-04-03 19:06:49 +00:00
|
|
|
///////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// main.h
|
|
|
|
// main.cpp's lumber room :)
|
|
|
|
///////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#include <windows.h>
|
|
|
|
#include <commctrl.h>
|
2005-04-16 17:09:12 +00:00
|
|
|
#include <stdio.h>
|
2005-04-03 19:06:49 +00:00
|
|
|
|
2005-04-16 17:09:12 +00:00
|
|
|
#include <package.h>
|
2005-04-03 19:06:49 +00:00
|
|
|
#include "resource.h"
|
|
|
|
|
|
|
|
/* Some Variables */
|
|
|
|
|
|
|
|
int selected, splitter_pos = 50;
|
|
|
|
|
|
|
|
pTree tree;
|
|
|
|
HMENU hPopup;
|
2005-04-11 20:27:20 +00:00
|
|
|
HACCEL hHotKeys;
|
2005-04-03 19:06:49 +00:00
|
|
|
HWND hTBar, hTree, hEdit, hStatus;
|
|
|
|
HTREEITEM nodes [MAXNODES];
|
|
|
|
|
|
|
|
/* Window Callbacks */
|
|
|
|
|
|
|
|
LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
|
|
|
|
INT_PTR CALLBACK StatusProc (HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
|
|
|
|
INT_PTR CALLBACK OptionsProc (HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
|
|
|
|
|
|
|
|
/* Prototypes */
|
|
|
|
|
|
|
|
void Help (void);
|
|
|
|
|
|
|
|
int AddItem (int id, const char* name, int parent, int icon);
|
|
|
|
int SetText (const char* text);
|
|
|
|
int SetStatus (int status1, int status2, WCHAR* text);
|
2005-04-10 15:34:15 +00:00
|
|
|
int Ask (const WCHAR* message);
|
2005-04-03 19:06:49 +00:00
|
|
|
|
|
|
|
/* Toolbar Releated */
|
|
|
|
|
|
|
|
#define TBSTYLE_FLAT 2048
|
|
|
|
|
|
|
|
// This is the struct where the toolbar is defined
|
2005-05-11 16:50:39 +00:00
|
|
|
extern const TBBUTTON Buttons [];
|
|
|
|
|