ReactOS 0.4.15-dev-7907-g95bf896
toolspage.cpp File Reference
#include "precomp.h"
#include "xmldomparser.hpp"
#include "utils.h"
#include "listview.h"
#include "uxthemesupp.h"
Include dependency graph for toolspage.cpp:

Go to the source code of this file.

Classes

struct  TOOL
 

Functions

static void AddTool (IXMLDOMElement *, BOOL)
 
static HRESULT ParseToolsList (IXMLDOMDocument *pXMLDom, BOOL bIsStandard)
 
static void AddItem (BOOL bIsStandard, const _bstr_t &name, const _bstr_t &descr, TOOL *tool)
 
static void FillListView (void)
 
static size_t BuildCommandLine (LPWSTR lpszDest, LPCWSTR lpszCmdLine, LPCWSTR lpszParam, size_t bufSize)
 
static void Update_States (int iSelectedItem)
 
static BOOL RunSelectedTool (VOID)
 
INT_PTR CALLBACK ToolsPageWndProc (HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
 

Variables

static HWND hToolsPage = NULL
 
static HWND hToolsListCtrl = NULL
 
static int iToolsPageSortedColumn = 0
 

Function Documentation

◆ AddItem()

static void AddItem ( BOOL  bIsStandard,
const _bstr_t &  name,
const _bstr_t &  descr,
TOOL tool 
)
static

Definition at line 123 of file toolspage.cpp.

124{
125 LPWSTR lpszStandard;
126 LVITEM item = {};
127
128 assert(tool);
129
130 item.mask = LVIF_TEXT | LVIF_PARAM;
131 item.lParam = (LPARAM)tool;
132
133 item.pszText = (LPWSTR)name;
134 item.iSubItem = 0;
135 // item.iItem = ListView_GetItemCount(hToolsListCtrl);
136
138
139 if (bIsStandard)
140 {
141 lpszStandard = LoadResourceString(hInst, IDS_YES);
142 ListView_SetItemText(hToolsListCtrl, item.iItem, 1, lpszStandard);
143 MemFree(lpszStandard);
144 }
145 else
146 {
147 lpszStandard = LoadResourceString(hInst, IDS_NO);
148 ListView_SetItemText(hToolsListCtrl, item.iItem, 1, lpszStandard);
149 MemFree(lpszStandard);
150 }
151
153}
#define IDS_YES
Definition: resource.h:16
#define IDS_NO
Definition: resource.h:17
BOOL MemFree(IN PVOID lpMem)
Definition: utils.c:26
#define LoadResourceString(hInst, uID)
Definition: utils.h:48
#define assert(x)
Definition: debug.h:53
HINSTANCE hInst
Definition: dxdiag.c:13
static ATOM item
Definition: dde.c:856
#define ListView_InsertItem(hwnd, pitem)
Definition: commctrl.h:2408
#define LVITEM
Definition: commctrl.h:2375
#define LVIF_PARAM
Definition: commctrl.h:2311
#define ListView_SetItemText(hwndLV, i, iSubItem_, pszText_)
Definition: commctrl.h:2691
#define LVIF_TEXT
Definition: commctrl.h:2309
const char * descr
Definition: boot.c:45
Definition: name.c:39
static HWND hToolsListCtrl
Definition: toolspage.cpp:17
LONG_PTR LPARAM
Definition: windef.h:208
WCHAR * LPWSTR
Definition: xmlstorage.h:184

◆ AddTool()

static void AddTool ( IXMLDOMElement pXMLTool,
BOOL  bIsStandard 
)
static

Definition at line 156 of file toolspage.cpp.

157{
158 TOOL* tool;
159 _variant_t varLocID, varName, varPath,
160 varDefOpt, varAdvOpt, varHelp;
161
162 assert(pXMLTool);
163
164 pXMLTool->getAttribute(_bstr_t(L"_locID") , &varLocID );
165 pXMLTool->getAttribute(_bstr_t(L"NAME") , &varName );
166 pXMLTool->getAttribute(_bstr_t(L"PATH") , &varPath );
167 pXMLTool->getAttribute(_bstr_t(L"DEFAULT_OPT"), &varDefOpt);
168 pXMLTool->getAttribute(_bstr_t(L"ADV_OPT") , &varAdvOpt);
169 pXMLTool->getAttribute(_bstr_t(L"HELP") , &varHelp );
170
171 // TODO: check if the tool really exists... ??
172
173 tool = new TOOL(_bstr_t(varPath), _bstr_t(varDefOpt), _bstr_t(varAdvOpt));
174 AddItem(bIsStandard, _bstr_t(varName), _bstr_t(varHelp), tool);
175}
HRESULT getAttribute([in] BSTR name, [out, retval] VARIANT *value)
#define L(x)
Definition: ntvdm.h:50
#define AddItem
Definition: userenv.h:209

Referenced by ParseToolsList().

◆ BuildCommandLine()

static size_t BuildCommandLine ( LPWSTR  lpszDest,
LPCWSTR  lpszCmdLine,
LPCWSTR  lpszParam,
size_t  bufSize 
)
static

Definition at line 204 of file toolspage.cpp.

205{
206 size_t numOfChars = 0; // The null character is counted in ExpandEnvironmentStrings(...).
207 // TODO: Take into account the "plus one" for numOfChars for ANSI version (see MSDN for more details).
208
209 if (lpszCmdLine && *lpszCmdLine)
210 {
211 numOfChars += ExpandEnvironmentStringsW(lpszCmdLine, NULL, 0);
212 if (lpszDest)
213 ExpandEnvironmentStringsW(lpszCmdLine, lpszDest, (DWORD)bufSize); // TODO: size_t to DWORD conversion !
214
215 if (lpszParam && *lpszParam)
216 {
217 ++numOfChars;
218 if (lpszDest)
219 wcscat(lpszDest, L" ");
220 }
221 }
222
223 if (lpszParam && *lpszParam)
224 {
225 numOfChars += wcslen(lpszParam);
226 if (lpszDest)
227 wcscat(lpszDest, lpszParam);
228 }
229
230 return numOfChars;
231}
WCHAR lpszDest[260]
#define NULL
Definition: types.h:112
DWORD WINAPI ExpandEnvironmentStringsW(IN LPCWSTR lpSrc, IN LPWSTR lpDst, IN DWORD nSize)
Definition: environ.c:519
unsigned long DWORD
Definition: ntddk_ex.h:95
GLuint GLsizei bufSize
Definition: glext.h:6040
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
_CRTIMP wchar_t *__cdecl wcscat(_Inout_updates_z_(_String_length_(_Dest)+_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)

Referenced by Update_States().

◆ FillListView()

static void FillListView ( void  )
static

Definition at line 178 of file toolspage.cpp.

179{
180 IXMLDOMDocument* pXMLDom = NULL;
181
183 return;
184
186 {
187 // Load the internal tools list.
188 if (LoadXMLDocumentFromResource(pXMLDom, L"MSCFGTL.XML"))
189 ParseToolsList(pXMLDom, TRUE);
190
191 // Try to load the user-provided tools list. If it doesn't exist,
192 // then the second list-view's column "Standard" tool is removed.
193 if (LoadXMLDocumentFromFile(pXMLDom, L"MSCFGTLC.XML", TRUE))
194 ParseToolsList(pXMLDom, FALSE);
195 else
197 }
198
199 SAFE_RELEASE(pXMLDom);
201}
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
#define SUCCEEDED(hr)
Definition: intsafe.h:50
#define ListView_DeleteColumn(hwnd, iCol)
Definition: commctrl.h:2639
static HRESULT ParseToolsList(IXMLDOMDocument *pXMLDom, BOOL bIsStandard)
Definition: toolspage.cpp:46
HRESULT InitXMLDOMParser(VOID)
BOOL LoadXMLDocumentFromResource(IXMLDOMDocument *pDoc, LPCWSTR lpszXMLResName)
BOOL LoadXMLDocumentFromFile(IXMLDOMDocument *pDoc, LPCWSTR lpszFilename, BOOL bIgnoreErrorsIfNonExistingFile)
HRESULT CreateAndInitXMLDOMDocument(IXMLDOMDocument **ppDoc)
#define SAFE_RELEASE(p)
void UninitXMLDOMParser(void)

Referenced by ToolsPageWndProc().

◆ ParseToolsList()

static HRESULT ParseToolsList ( IXMLDOMDocument pXMLDom,
BOOL  bIsStandard 
)
static

Definition at line 46 of file toolspage.cpp.

47{
48 static const _bstr_t XMLFileTag(L"MSCONFIGTOOLFILE");
49 static const _bstr_t XMLToolsTag(L"MSCONFIGTOOLS");
50
51 HRESULT hr = S_OK;
52
53 IXMLDOMNode *pIterator = NULL, *pTmp = NULL;
54 IXMLDOMElement* pEl = NULL;
56 _bstr_t tagName;
57
58 if (!pXMLDom)
59 return E_POINTER; // E_INVALIDARG
60
61 pXMLDom->get_documentElement(&pEl);
62
63 pEl->get_tagName(&tagName.GetBSTR());
64 _wcsupr(tagName);
65 if (tagName == XMLFileTag)
66 {
67 pEl->get_firstChild(&pIterator); SAFE_RELEASE(pEl);
68 while (pIterator)
69 {
70 pIterator->get_nodeType(&type);
71 if (type == NODE_ELEMENT)
72 {
73 pIterator->QueryInterface(IID_PPV_ARG(IXMLDOMElement, &pEl) /* IID_PPV_ARGS(&pEl) */);
74
75 pEl->get_tagName(&tagName.GetBSTR());
76 _wcsupr(tagName);
77 if (tagName == XMLToolsTag)
78 {
79 pEl->get_firstChild(&pIterator); SAFE_RELEASE(pEl);
80 while (pIterator)
81 {
82 pIterator->QueryInterface(IID_PPV_ARG(IXMLDOMElement, &pEl) /* IID_PPV_ARGS(&pEl) */);
83 AddTool(pEl, bIsStandard);
84 SAFE_RELEASE(pEl);
85
86 pIterator->get_nextSibling(&pTmp);
87 SAFE_RELEASE(pIterator); pIterator = pTmp;
88 }
89 // SAFE_RELEASE(pIterator);
90
91 break;
92 }
93
94 SAFE_RELEASE(pEl);
95 }
96
97 pIterator->get_nextSibling(&pTmp);
98 SAFE_RELEASE(pIterator); pIterator = pTmp;
99 }
100 // SAFE_RELEASE(pIterator);
101 }
102 else if (tagName == XMLToolsTag)
103 {
104 pEl->get_firstChild(&pIterator); SAFE_RELEASE(pEl);
105 while (pIterator)
106 {
107 pIterator->QueryInterface(IID_PPV_ARG(IXMLDOMElement, &pEl) /* IID_PPV_ARGS(&pEl) */);
108 AddTool(pEl, bIsStandard);
109 SAFE_RELEASE(pEl);
110
111 pIterator->get_nextSibling(&pTmp);
112 SAFE_RELEASE(pIterator); pIterator = pTmp;
113 }
114 // SAFE_RELEASE(pIterator);
115 }
116
117 SAFE_RELEASE(pEl);
118
119 return hr;
120}
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
HRESULT QueryInterface([in] REFIID riid, [out, iid_is(riid)] void **ppvObject)
#define S_OK
Definition: intsafe.h:52
_CRTIMP wchar_t *__cdecl _wcsupr(_Inout_z_ wchar_t *_String)
HRESULT hr
Definition: shlfolder.c:183
static void AddTool(IXMLDOMElement *, BOOL)
Definition: toolspage.cpp:156
#define E_POINTER
Definition: winerror.h:2365
enum tagDOMNodeType DOMNodeType
@ NODE_ELEMENT
Definition: xmldom.idl:53
#define IID_PPV_ARG(Itype, ppType)

Referenced by FillListView().

◆ RunSelectedTool()

static BOOL RunSelectedTool ( VOID  )
static

Definition at line 290 of file toolspage.cpp.

291{
293 BOOL bUseAdvParams;
294
295 LVITEM item = {};
296 item.mask = LVIF_PARAM;
299
300 if (ListView_GetItem(hToolsListCtrl, &item)) // (item.iItem > -1) // TODO: corriger ailleurs ce genre de code...
301 {
304 bUseAdvParams = TRUE;
305 else
306 bUseAdvParams = FALSE;
307
308 // Values greater (strictly) than 32 indicate success (see MSDN documentation for ShellExecute(...) API).
309 Success = (reinterpret_cast<TOOL*>(item.lParam)->Run(bUseAdvParams) > 32);
310 }
311
312 return Success;
313}
#define IDC_CBX_TOOLS_ADVOPT
Definition: resource.h:85
#define Button_IsEnabled(hwndCtl)
Definition: comctl32supp.h:14
@ Success
Definition: eventcreate.c:712
unsigned int BOOL
Definition: ntddk_ex.h:94
#define ListView_GetSelectionMark(hwnd)
Definition: commctrl.h:2789
#define ListView_GetItem(hwnd, pitem)
Definition: commctrl.h:2394
static HWND hToolsPage
Definition: toolspage.cpp:16
struct tagRun Run
#define Button_GetCheck(hwndCtl)
Definition: windowsx.h:31
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
#define BST_CHECKED
Definition: winuser.h:197

Referenced by ToolsPageWndProc().

◆ ToolsPageWndProc()

INT_PTR CALLBACK ToolsPageWndProc ( HWND  hDlg,
UINT  message,
WPARAM  wParam,
LPARAM  lParam 
)

Definition at line 318 of file toolspage.cpp.

319{
320 switch (message)
321 {
322 case WM_INITDIALOG:
323 {
324 hToolsPage = hDlg;
326
327 //
328 // Initialize the styles.
329 //
332 SetWindowTheme(hToolsListCtrl, L"Explorer", NULL);
333
334 //
335 // Initialize the application page's controls.
336 //
337 LVCOLUMN column = {};
338
339 // First column : Tool's name.
340 column.mask = LVCF_TEXT | LVCF_WIDTH;
342 column.cx = 150;
344 MemFree(column.pszText);
345
346 // Second column : Whether the tool is a standard one or not.
347 column.mask = LVCF_TEXT | LVCF_WIDTH;
349 column.cx = 60;
351 MemFree(column.pszText);
352
353 // Third column : Description.
354 column.mask = LVCF_TEXT | LVCF_WIDTH;
356 column.cx = 500;
358 MemFree(column.pszText);
359
360 //
361 // Populate and sort the list.
362 //
363 FillListView();
365
366 // Force an update in case of an empty list (giving focus on it when empty won't emit a LVN_ITEMCHANGED message).
367 Update_States(-1 /* Wrong index to initialize all the controls with their default state (i.e. disabled) */);
368
370
371 return TRUE;
372 }
373
374 case WM_DESTROY:
375 {
376 LVITEM lvitem = {};
377 lvitem.mask = LVIF_PARAM;
378 lvitem.iItem = -1; // From the beginning.
379
380 while ((lvitem.iItem = ListView_GetNextItem(hToolsListCtrl, lvitem.iItem, LVNI_ALL)) != -1)
381 {
382 // ListView_Update(); // Updates a list-view item.
383 // ListView_FindItem(); // peut être intéressant pour faire de la recherche itérative à partir du nom (ou partie du...) de l'item.
384
386
387 delete reinterpret_cast<TOOL*>(lvitem.lParam);
388 lvitem.lParam = NULL;
389 }
391
392 return 0;
393 }
394
395 case WM_COMMAND:
396 {
397 switch (LOWORD(wParam))
398 {
399 case IDC_BTN_RUN:
400 {
402 return TRUE;
403 }
404
406 {
408 return TRUE;
409 }
410
411 default:
412 return FALSE;
413 }
414 return FALSE;
415 }
416
417 case WM_NOTIFY:
418 {
419 if (((LPNMHDR)lParam)->hwndFrom == hToolsListCtrl)
420 {
421 switch (((LPNMHDR)lParam)->code)
422 {
423 case LVN_ITEMCHANGED:
424 {
425 if ( (((LPNMLISTVIEW)lParam)->uChanged & LVIF_STATE) && /* The state has changed */
426 (((LPNMLISTVIEW)lParam)->uNewState & LVIS_SELECTED) /* The item has been (de)selected */ )
427 {
429 }
430
431 return TRUE;
432 }
433
434 case NM_DBLCLK:
435 case NM_RDBLCLK:
436 {
438 return TRUE;
439 }
440
441 case LVN_COLUMNCLICK:
442 {
443 int iSortingColumn = ((LPNMLISTVIEW)lParam)->iSubItem;
444
446 iToolsPageSortedColumn = iSortingColumn;
447
448 return TRUE;
449 }
450
451 default:
452 break;
453 }
454 }
455 else
456 {
457 switch (((LPNMHDR)lParam)->code)
458 {
459 case PSN_APPLY:
460 {
461 // Since there are nothing to modify, applying modifications
462 // cannot return any error.
465 return TRUE;
466 }
467
468 case PSN_HELP:
469 {
470 MessageBoxW(hToolsPage, L"Help not implemented yet!", L"Help", MB_ICONINFORMATION | MB_OK);
471 return TRUE;
472 }
473
474 case PSN_KILLACTIVE: // Is going to lose activation.
475 {
476 // Changes are always valid of course.
478 return TRUE;
479 }
480
481 case PSN_QUERYCANCEL:
482 {
483 // Allows cancellation since there are nothing to cancel...
485 return TRUE;
486 }
487
489 {
490 // Give the focus on and select the first item.
492
494 return TRUE;
495 }
496
497 //
498 // DO NOT TOUCH THESE NEXT MESSAGES, THEY ARE OK LIKE THIS...
499 //
500 case PSN_RESET: // Perform final cleaning, called before WM_DESTROY.
501 return TRUE;
502
503 case PSN_SETACTIVE: // Is going to gain activation.
504 {
506 return TRUE;
507 }
508
509 default:
510 break;
511 }
512 }
513
514 return FALSE;
515 }
516
517 default:
518 return FALSE;
519 }
520
521 // return FALSE;
522}
#define IDS_TOOLS_COLUMN_DESCR
Definition: resource.h:80
#define IDC_TOOLS_LIST
Definition: resource.h:18
#define IDS_TOOLS_COLUMN_NAME
Definition: resource.h:79
#define IDC_BTN_RUN
Definition: resource.h:16
BOOL ListView_SortEx(HWND hListView, int iSortingColumn, int iSortedColumn)
Definition: listview.c:43
#define IDS_TOOLS_COLUMN_STANDARD
Definition: resource.h:89
WPARAM wParam
Definition: combotst.c:138
LPARAM lParam
Definition: combotst.c:139
#define ListView_Sort(hListView, iSortingColumn)
Definition: listview.h:32
#define PSN_QUERYINITIALFOCUS
Definition: settings.cpp:98
__int3264 LONG_PTR
Definition: mstsclib_h.h:276
#define LOWORD(l)
Definition: pedump.c:82
#define PSN_QUERYCANCEL
Definition: prsht.h:123
#define PropSheet_UnChanged(d, w)
Definition: prsht.h:358
#define PSN_KILLACTIVE
Definition: prsht.h:116
#define PSN_APPLY
Definition: prsht.h:117
#define PSNRET_NOERROR
Definition: prsht.h:129
#define PSN_HELP
Definition: prsht.h:119
#define PSN_RESET
Definition: prsht.h:118
#define PSN_SETACTIVE
Definition: prsht.h:115
#define NM_RDBLCLK
Definition: commctrl.h:134
#define ListView_SetItemState(hwndLV, i, data, mask)
Definition: commctrl.h:2673
#define LVN_COLUMNCLICK
Definition: commctrl.h:3139
#define ListView_InsertColumn(hwnd, iCol, pcol)
Definition: commctrl.h:2636
#define NM_DBLCLK
Definition: commctrl.h:131
#define LVIF_STATE
Definition: commctrl.h:2312
#define LVCF_WIDTH
Definition: commctrl.h:2587
#define ListView_GetNextItem(hwnd, i, flags)
Definition: commctrl.h:2434
#define LVS_EX_FULLROWSELECT
Definition: commctrl.h:2734
#define ListView_SetExtendedListViewStyle(hwndLV, dw)
Definition: commctrl.h:2725
#define LVIS_SELECTED
Definition: commctrl.h:2319
struct tagNMLISTVIEW * LPNMLISTVIEW
#define ListView_DeleteAllItems(hwnd)
Definition: commctrl.h:2414
#define LVN_ITEMCHANGED
Definition: commctrl.h:3131
#define LVCF_TEXT
Definition: commctrl.h:2588
#define LVIS_FOCUSED
Definition: commctrl.h:2318
#define LVCOLUMN
Definition: commctrl.h:2581
#define ListView_GetExtendedListViewStyle(hwndLV)
Definition: commctrl.h:2728
#define LVNI_ALL
Definition: commctrl.h:2422
#define WM_NOTIFY
Definition: richedit.h:61
Definition: inflate.c:139
Definition: tftpd.h:60
static void FillListView(void)
Definition: toolspage.cpp:178
static void Update_States(int iSelectedItem)
Definition: toolspage.cpp:233
static int iToolsPageSortedColumn
Definition: toolspage.cpp:18
static BOOL RunSelectedTool(VOID)
Definition: toolspage.cpp:290
#define SetWindowLongPtr
Definition: treelist.c:70
HRESULT WINAPI SetWindowTheme(_In_ HWND hwnd, _In_ LPCWSTR pszSubAppName, _In_ LPCWSTR pszSubIdList)
Definition: uxthemesupp.c:69
#define WM_COMMAND
Definition: winuser.h:1740
#define WM_INITDIALOG
Definition: winuser.h:1739
int WINAPI MessageBoxW(_In_opt_ HWND hWnd, _In_opt_ LPCWSTR lpText, _In_opt_ LPCWSTR lpCaption, _In_ UINT uType)
#define MB_OK
Definition: winuser.h:790
HWND WINAPI GetParent(_In_ HWND)
#define DWLP_MSGRESULT
Definition: winuser.h:870
#define MB_ICONINFORMATION
Definition: winuser.h:802
#define WM_DESTROY
Definition: winuser.h:1609

◆ Update_States()

static void Update_States ( int  iSelectedItem)
static

Definition at line 233 of file toolspage.cpp.

234{
235 TOOL* tool;
236 LVITEM item = {};
237
239
240 item.mask = LVIF_PARAM;
241 item.iItem = iSelectedItem;
242
243 if (ListView_GetItem(hToolsListCtrl, &item)) // (item.iItem > -1) // TODO: corriger ailleurs ce genre de code...
244 {
245 LPWSTR lpszCmdLine = NULL;
246 size_t numOfChars = 0;
247 tool = reinterpret_cast<TOOL*>(item.lParam);
248
250
252
253 if (!*(wchar_t*)tool->m_AdvParam)
254 {
257 }
258 else
259 {
262 }
263
266 {
267 numOfChars = BuildCommandLine(NULL, tool->m_Command, tool->m_AdvParam, 0);
268 lpszCmdLine = (LPWSTR)MemAlloc(0, numOfChars * sizeof(WCHAR));
269 BuildCommandLine(lpszCmdLine, tool->m_Command, tool->m_AdvParam, numOfChars);
270 }
271 else
272 {
273 numOfChars = BuildCommandLine(NULL, tool->m_Command, tool->m_DefParam, 0);
274 lpszCmdLine = (LPWSTR)MemAlloc(0, numOfChars * sizeof(WCHAR));
275 BuildCommandLine(lpszCmdLine, tool->m_Command, tool->m_DefParam, numOfChars);
276 }
277
279
280 MemFree(lpszCmdLine);
281 }
282 else
283 {
287 }
288}
#define IDC_TOOLS_CMDLINE
Definition: resource.h:15
PVOID MemAlloc(IN DWORD dwFlags, IN SIZE_T dwBytes)
Definition: utils.c:33
#define ListView_EnsureVisible(hwndLV, i, fPartialOK)
Definition: commctrl.h:2519
_bstr_t m_Command
Definition: toolspage.cpp:38
_bstr_t m_DefParam
Definition: toolspage.cpp:39
_bstr_t m_AdvParam
Definition: toolspage.cpp:40
static size_t BuildCommandLine(LPWSTR lpszDest, LPCWSTR lpszCmdLine, LPCWSTR lpszParam, size_t bufSize)
Definition: toolspage.cpp:204
#define Button_Enable(hwndCtl, fEnable)
Definition: windowsx.h:30
#define SW_HIDE
Definition: winuser.h:768
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
#define WM_SETTEXT
Definition: winuser.h:1617
#define SendDlgItemMessage
Definition: winuser.h:5842
#define SW_NORMAL
Definition: winuser.h:769
__wchar_t WCHAR
Definition: xmlstorage.h:180

Referenced by ToolsPageWndProc().

Variable Documentation

◆ hToolsListCtrl

HWND hToolsListCtrl = NULL
static

Definition at line 17 of file toolspage.cpp.

Referenced by AddItem(), FillListView(), RunSelectedTool(), ToolsPageWndProc(), and Update_States().

◆ hToolsPage

HWND hToolsPage = NULL
static

Definition at line 16 of file toolspage.cpp.

Referenced by RunSelectedTool(), ToolsPageWndProc(), and Update_States().

◆ iToolsPageSortedColumn

int iToolsPageSortedColumn = 0
static

Definition at line 18 of file toolspage.cpp.

Referenced by ToolsPageWndProc().