BCC is more strict about not statements before parameter declarations
This commit is contained in:
@@ -857,8 +857,6 @@ HWND GetMenuControl(HWND hWnd)
|
||||
/*-----------------------------------------------------------------------------*/
|
||||
BOOL onMeasureItem(HWND hWnd, WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
UNREFERENCED_PARAMETER(wParam);
|
||||
|
||||
LPMEASUREITEMSTRUCT lpmis;
|
||||
TEXTMETRIC tm;
|
||||
HGDIOBJ saveFont;
|
||||
@@ -867,6 +865,8 @@ BOOL onMeasureItem(HWND hWnd, WPARAM wParam, LPARAM lParam)
|
||||
RECT list_rect;
|
||||
int i;
|
||||
|
||||
UNREFERENCED_PARAMETER(wParam);
|
||||
|
||||
lpmis = (LPMEASUREITEMSTRUCT) lParam;
|
||||
data = (PNHMenuWindow)GetWindowLongPtr(hWnd, GWLP_USERDATA);
|
||||
GetClientRect(GetMenuControl(hWnd), &list_rect);
|
||||
@@ -894,8 +894,6 @@ BOOL onMeasureItem(HWND hWnd, WPARAM wParam, LPARAM lParam)
|
||||
/*-----------------------------------------------------------------------------*/
|
||||
BOOL onDrawItem(HWND hWnd, WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
UNREFERENCED_PARAMETER(wParam);
|
||||
|
||||
LPDRAWITEMSTRUCT lpdis;
|
||||
PNHMenuItem item;
|
||||
PNHMenuWindow data;
|
||||
@@ -915,6 +913,8 @@ BOOL onDrawItem(HWND hWnd, WPARAM wParam, LPARAM lParam)
|
||||
int color = NO_COLOR, attr;
|
||||
boolean menucolr = FALSE;
|
||||
|
||||
UNREFERENCED_PARAMETER(wParam);
|
||||
|
||||
lpdis = (LPDRAWITEMSTRUCT) lParam;
|
||||
|
||||
/* If there are no list box items, skip this message. */
|
||||
|
||||
Reference in New Issue
Block a user