mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 14:23:18 +00:00
Fix some 'unreferenced variable' warnings
svn path=/trunk/; revision=23145
This commit is contained in:
parent
1a781d5bf4
commit
d9f7a999cf
1 changed files with 26 additions and 0 deletions
|
@ -114,6 +114,9 @@ WinMain(HINSTANCE hInst,
|
||||||
WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX;
|
WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX;
|
||||||
BITMAP BitmapInfo;
|
BITMAP BitmapInfo;
|
||||||
|
|
||||||
|
UNREFERENCED_PARAMETER(hPrevInstance);
|
||||||
|
UNREFERENCED_PARAMETER(lpszCmdLine);
|
||||||
|
|
||||||
hInstance = hInst;
|
hInstance = hInst;
|
||||||
|
|
||||||
/* Load icons */
|
/* Load icons */
|
||||||
|
@ -314,6 +317,9 @@ OnCreate(HWND hWnd, WPARAM wParam, LPARAM lParam)
|
||||||
DWORD dwTop;
|
DWORD dwTop;
|
||||||
DWORD dwHeight = 0;
|
DWORD dwHeight = 0;
|
||||||
|
|
||||||
|
UNREFERENCED_PARAMETER(wParam);
|
||||||
|
UNREFERENCED_PARAMETER(lParam);
|
||||||
|
|
||||||
hbrLightBlue = CreateSolidBrush(LIGHT_BLUE);
|
hbrLightBlue = CreateSolidBrush(LIGHT_BLUE);
|
||||||
hbrDarkBlue = CreateSolidBrush(DARK_BLUE);
|
hbrDarkBlue = CreateSolidBrush(DARK_BLUE);
|
||||||
hbrRightPanel = CreateSolidBrush(0x00FFFFFF);
|
hbrRightPanel = CreateSolidBrush(0x00FFFFFF);
|
||||||
|
@ -457,6 +463,8 @@ OnCreate(HWND hWnd, WPARAM wParam, LPARAM lParam)
|
||||||
static LRESULT
|
static LRESULT
|
||||||
OnCommand(HWND hWnd, WPARAM wParam, LPARAM lParam)
|
OnCommand(HWND hWnd, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
|
UNREFERENCED_PARAMETER(lParam);
|
||||||
|
|
||||||
if (LOWORD(wParam) == IDC_CLOSEBUTTON)
|
if (LOWORD(wParam) == IDC_CLOSEBUTTON)
|
||||||
{
|
{
|
||||||
DestroyWindow(hWnd);
|
DestroyWindow(hWnd);
|
||||||
|
@ -518,6 +526,9 @@ OnPaint(HWND hWnd, WPARAM wParam, LPARAM lParam)
|
||||||
BITMAP bmpInfo;
|
BITMAP bmpInfo;
|
||||||
TCHAR version[50];
|
TCHAR version[50];
|
||||||
|
|
||||||
|
UNREFERENCED_PARAMETER(wParam);
|
||||||
|
UNREFERENCED_PARAMETER(lParam);
|
||||||
|
|
||||||
hdc = BeginPaint(hWnd, &ps);
|
hdc = BeginPaint(hWnd, &ps);
|
||||||
|
|
||||||
/* Banner panel */
|
/* Banner panel */
|
||||||
|
@ -662,6 +673,9 @@ OnDrawItem(HWND hWnd, WPARAM wParam, LPARAM lParam)
|
||||||
TCHAR szText[80];
|
TCHAR szText[80];
|
||||||
int iBkMode;
|
int iBkMode;
|
||||||
|
|
||||||
|
UNREFERENCED_PARAMETER(hWnd);
|
||||||
|
UNREFERENCED_PARAMETER(wParam);
|
||||||
|
|
||||||
if (lpDis->hwndItem == hwndCloseButton)
|
if (lpDis->hwndItem == hwndCloseButton)
|
||||||
{
|
{
|
||||||
DrawFrameControl(lpDis->hDC,
|
DrawFrameControl(lpDis->hDC,
|
||||||
|
@ -707,6 +721,9 @@ OnDrawItem(HWND hWnd, WPARAM wParam, LPARAM lParam)
|
||||||
static LRESULT
|
static LRESULT
|
||||||
OnMouseMove(HWND hWnd, WPARAM wParam, LPARAM lParam)
|
OnMouseMove(HWND hWnd, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
|
UNREFERENCED_PARAMETER(wParam);
|
||||||
|
UNREFERENCED_PARAMETER(lParam);
|
||||||
|
|
||||||
if (nTopic != -1)
|
if (nTopic != -1)
|
||||||
{
|
{
|
||||||
nTopic = -1;
|
nTopic = -1;
|
||||||
|
@ -721,6 +738,8 @@ OnMouseMove(HWND hWnd, WPARAM wParam, LPARAM lParam)
|
||||||
static LRESULT
|
static LRESULT
|
||||||
OnCtlColorStatic(HWND hWnd, WPARAM wParam, LPARAM lParam)
|
OnCtlColorStatic(HWND hWnd, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
|
UNREFERENCED_PARAMETER(hWnd);
|
||||||
|
|
||||||
if ((HWND)lParam == hwndCheckButton)
|
if ((HWND)lParam == hwndCheckButton)
|
||||||
{
|
{
|
||||||
SetBkColor((HDC)wParam, LIGHT_BLUE);
|
SetBkColor((HDC)wParam, LIGHT_BLUE);
|
||||||
|
@ -734,6 +753,9 @@ OnCtlColorStatic(HWND hWnd, WPARAM wParam, LPARAM lParam)
|
||||||
static LRESULT
|
static LRESULT
|
||||||
OnActivate(HWND hWnd, WPARAM wParam, LPARAM lParam)
|
OnActivate(HWND hWnd, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
|
UNREFERENCED_PARAMETER(hWnd);
|
||||||
|
UNREFERENCED_PARAMETER(wParam);
|
||||||
|
UNREFERENCED_PARAMETER(lParam);
|
||||||
nTopic = -1;
|
nTopic = -1;
|
||||||
InvalidateRect(hwndMain, &rcRightPanel, TRUE);
|
InvalidateRect(hwndMain, &rcRightPanel, TRUE);
|
||||||
|
|
||||||
|
@ -746,6 +768,10 @@ OnDestroy(HWND hWnd, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
UNREFERENCED_PARAMETER(hWnd);
|
||||||
|
UNREFERENCED_PARAMETER(wParam);
|
||||||
|
UNREFERENCED_PARAMETER(lParam);
|
||||||
|
|
||||||
for (i=0;i<10;i++)
|
for (i=0;i<10;i++)
|
||||||
{
|
{
|
||||||
if (hwndTopicButton[i] != 0)
|
if (hwndTopicButton[i] != 0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue