1 ///////////////////////////////////////////////////
4 // main.cpp's lumber room :)
5 ///////////////////////////////////////////////////
8 #include <ntos/keyboard.h>
13 #include <package.hpp>
18 int selected
, splitter_pos
= 50;
22 HWND hTBar
, hTree
, hEdit
, hStatus
;
23 HTREEITEM nodes
[MAXNODES
];
25 /* Window Callbacks */
27 LRESULT CALLBACK
WndProc(HWND
, UINT
, WPARAM
, LPARAM
);
28 INT_PTR CALLBACK
StatusProc (HWND hDlg
, UINT message
, WPARAM wParam
, LPARAM lParam
);
29 INT_PTR CALLBACK
OptionsProc (HWND hDlg
, UINT message
, WPARAM wParam
, LPARAM lParam
);
35 int AddItem (int id
, const char* name
, int parent
, int icon
);
36 int SetText (const char* text
);
37 int SetStatus (int status1
, int status2
, WCHAR
* text
);
39 /* Toolbar Releated */
41 #define TBSTYLE_FLAT 2048
43 // This is the struct where the toolbar is defined
46 {0, 0, TBSTATE_ENABLED
, TBSTYLE_SEP
, 0L, 0},
48 {0, 1, TBSTATE_INDETERMINATE
, TBSTYLE_BUTTON
, 0L, 0}, // No Action
49 {1, 2, TBSTATE_INDETERMINATE
, TBSTYLE_BUTTON
, 0L, 0}, // Install
50 {2, 3, TBSTATE_INDETERMINATE
, TBSTYLE_BUTTON
, 0L, 0}, // Install from source
51 {3, 4, TBSTATE_INDETERMINATE
, TBSTYLE_BUTTON
, 0L, 0}, // Update
52 {4, 5, TBSTATE_INDETERMINATE
, TBSTYLE_BUTTON
, 0L, 0}, // Unistall
54 {0, 0, TBSTATE_ENABLED
, TBSTYLE_SEP
, 0L, 0},
55 {5, 6, TBSTATE_ENABLED
, TBSTYLE_BUTTON
, 0L, 0}, // DoIt (tm)
56 {0, 0, TBSTATE_ENABLED
, TBSTYLE_SEP
, 0L, 0},
58 {6, 7, TBSTATE_ENABLED
, TBSTYLE_BUTTON
, 0L, 0}, // Help
59 {7, 8, TBSTATE_ENABLED
, TBSTYLE_BUTTON
, 0L, 0}, // Options
61 {0, 0, TBSTATE_ENABLED
, TBSTYLE_SEP
, 0L, 0},