1 |
/****************************************************************************** |
/****************************************************************************** |
2 |
* |
* |
3 |
* XviD Video-for-Windows Frontend |
* Xvid Video-for-Windows Frontend |
4 |
* Quantizer histogram and encoding status window |
* Quantizer histogram and encoding status window |
5 |
* |
* |
6 |
* Copyright (C) 2003 Peter Ross <pross@xvid.org> |
* Copyright (C) Peter Ross <pross@xvid.org> |
7 |
* |
* |
8 |
* This program is free software; you can redistribute it and/or modify |
* This program is free software; you can redistribute it and/or modify |
9 |
* it under the terms of the GNU General Public License as published by |
* it under the terms of the GNU General Public License as published by |
19 |
* along with this program; if not, write to the Free Software |
* along with this program; if not, write to the Free Software |
20 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 |
* |
* |
22 |
* $Id: status.c,v 1.2 2004-03-22 22:36:25 edgomez Exp $ |
* $Id: status.c,v 1.5 2010-12-02 06:46:07 Isibaar Exp $ |
23 |
* |
* |
24 |
*****************************************************************************/ |
*****************************************************************************/ |
25 |
|
|
119 |
|
|
120 |
/* status window proc handlder */ |
/* status window proc handlder */ |
121 |
|
|
122 |
static BOOL CALLBACK status_proc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) |
static INT_PTR 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); |