121 |
|
|
122 |
static BOOL CALLBACK status_proc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) |
static BOOL CALLBACK status_proc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) |
123 |
{ |
{ |
124 |
status_t * s = (status_t*)GetWindowLong(hDlg, GWL_USERDATA); |
status_t * s = (status_t*)GetWindowLongPtr(hDlg, GWLP_USERDATA); |
125 |
|
|
126 |
switch (uMsg) |
switch (uMsg) |
127 |
{ |
{ |
128 |
case WM_INITDIALOG : |
case WM_INITDIALOG : |
129 |
SetWindowLong(hDlg, GWL_USERDATA, lParam); |
SetWindowLongPtr(hDlg, GWLP_USERDATA, lParam); |
130 |
s = (status_t*)lParam; |
s = (status_t*)lParam; |
131 |
|
|
132 |
s->hGraph = GetDlgItem(hDlg, IDC_STATUS_GRAPH); |
s->hGraph = GetDlgItem(hDlg, IDC_STATUS_GRAPH); |