/* INCLUDES ******************************************************************/
#include <user32.h>
+#define NDEBUG
+#include <debug.h>
#ifndef WM_SETVISIBLE
#define WM_SETVISIBLE 9
ULONG width, ULONG height)
{
static HBRUSH hDraggingRectBrush = NULL;
+ HBRUSH hbrush;
if(!hDraggingRectBrush)
{
hDraggingRectBrush = CreatePatternBrush(hDraggingPattern);
}
- HBRUSH hbrush = SelectObject( hdc, hDraggingRectBrush );
+ hbrush = SelectObject( hdc, hDraggingRectBrush );
PatBlt( hdc, rect->left, rect->top,
rect->right - rect->left - width, height, PATINVERT );
PatBlt( hdc, rect->left, rect->top + height, width,
LRESULT
DefWndHandleWindowPosChanging(HWND hWnd, WINDOWPOS* Pos)
{
- POINT maxSize, minTrack;
+ POINT maxTrack, minTrack;
LONG style = GetWindowLongA(hWnd, GWL_STYLE);
if (Pos->flags & SWP_NOSIZE) return 0;
if ((style & WS_THICKFRAME) || ((style & (WS_POPUP | WS_CHILD)) == 0))
{
- WinPosGetMinMaxInfo(hWnd, &maxSize, NULL, &minTrack, NULL);
- Pos->cx = min(Pos->cx, maxSize.x);
- Pos->cy = min(Pos->cy, maxSize.y);
+ WinPosGetMinMaxInfo(hWnd, NULL, NULL, &minTrack, &maxTrack);
+ Pos->cx = min(Pos->cx, maxTrack.x);
+ Pos->cy = min(Pos->cy, maxTrack.y);
if (!(style & WS_MINIMIZE))
{
if (Pos->cx < minTrack.x) Pos->cx = minTrack.x;