Removed the last bit of new Windows Table test initialization stuff now that tableSetSelection is in; moved into the test program instead.
This commit is contained in:
parent
924352d76a
commit
7a26870c1a
|
@ -94,12 +94,6 @@ static const handlerfunc handlers[] = {
|
||||||
NULL,
|
NULL,
|
||||||
};
|
};
|
||||||
|
|
||||||
static void initDummyTableStuff(struct table *t)
|
|
||||||
{
|
|
||||||
t->selectedRow = 2;
|
|
||||||
t->selectedColumn = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
static LRESULT CALLBACK tableWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
static LRESULT CALLBACK tableWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
struct table *t;
|
struct table *t;
|
||||||
|
@ -119,7 +113,6 @@ static LRESULT CALLBACK tableWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM
|
||||||
t->selectedRow = -1;
|
t->selectedRow = -1;
|
||||||
t->selectedColumn = -1;
|
t->selectedColumn = -1;
|
||||||
loadCheckboxThemeData(t);
|
loadCheckboxThemeData(t);
|
||||||
initDummyTableStuff(t);
|
|
||||||
SetWindowLongPtrW(hwnd, GWLP_USERDATA, (LONG_PTR) t);
|
SetWindowLongPtrW(hwnd, GWLP_USERDATA, (LONG_PTR) t);
|
||||||
}
|
}
|
||||||
// even if we did the above, fall through
|
// even if we did the above, fall through
|
||||||
|
|
|
@ -13,6 +13,7 @@ HBITMAP mkbitmap(void);
|
||||||
BOOL mainwinCreate(HWND hwnd, LPCREATESTRUCT lpcs)
|
BOOL mainwinCreate(HWND hwnd, LPCREATESTRUCT lpcs)
|
||||||
{
|
{
|
||||||
intptr_t c;
|
intptr_t c;
|
||||||
|
intptr_t row, col;
|
||||||
|
|
||||||
tablehwnd = CreateWindowExW(0,
|
tablehwnd = CreateWindowExW(0,
|
||||||
tableWindowClass, L"Main Window",
|
tableWindowClass, L"Main Window",
|
||||||
|
@ -40,6 +41,9 @@ BOOL mainwinCreate(HWND hwnd, LPCREATESTRUCT lpcs)
|
||||||
}
|
}
|
||||||
c = 100;
|
c = 100;
|
||||||
SendMessageW(tablehwnd, tableSetRowCount, 0, (LPARAM) (&c));
|
SendMessageW(tablehwnd, tableSetRowCount, 0, (LPARAM) (&c));
|
||||||
|
row = 2;
|
||||||
|
col = 1;
|
||||||
|
SendMessageW(tablehwnd, tableSetSelection, (WPARAM) (&row), (LPARAM) (&col));
|
||||||
SetFocus(tablehwnd);
|
SetFocus(tablehwnd);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue