ReactOS 0.4.15-dev-7931-gfd331f1
panelwnd.c File Reference
#include <windows.h>
#include <commctrl.h>
#include <stdlib.h>
#include <malloc.h>
#include <memory.h>
#include <tchar.h>
#include <process.h>
#include <stdio.h>
#include <assert.h>
#include "main.h"
#include "panelwnd.h"
Include dependency graph for panelwnd.c:

Go to the source code of this file.

Macros

#define WIN32_LEAN_AND_MEAN
 
#define ASSERT   assert
 

Functions

static void OnPaint (HWND hWnd, ChildWnd *pChildWnd)
 
LRESULT CALLBACK PanelWndProc (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
 

Macro Definition Documentation

◆ ASSERT

#define ASSERT   assert

Definition at line 38 of file panelwnd.c.

◆ WIN32_LEAN_AND_MEAN

#define WIN32_LEAN_AND_MEAN

Definition at line 26 of file panelwnd.c.

Function Documentation

◆ OnPaint()

static void OnPaint ( HWND  hWnd,
ChildWnd pChildWnd 
)
static

Definition at line 45 of file panelwnd.c.

46{
47 PAINTSTRUCT ps;
48 RECT rt;
49 GetClientRect(hWnd, &rt);
50 BeginPaint(hWnd, &ps);
51
52// lastBrush = SelectObject(ps.hdc, (HBRUSH)GetStockObject(WHITE_BRUSH));
53// Rectangle(ps.hdc, rt.left, rt.top-1, rt.right, rt.bottom+1);
54// SelectObject(ps.hdc, lastBrush);
55// rt.top = rt.bottom - GetSystemMetrics(SM_CYHSCROLL);
57/*
58 rt.left = pChildWnd->nSplitPos-SPLIT_WIDTH/2;
59 rt.right = pChildWnd->nSplitPos+SPLIT_WIDTH/2+1;
60 lastBrush = SelectBrush(ps.hdc, (HBRUSH)GetStockObject(COLOR_SPLITBAR));
61 Rectangle(ps.hdc, rt.left, rt.top-1, rt.right, rt.bottom+1);
62 SelectObject(ps.hdc, lastBrush);
63#ifdef _NO_EXTENSIONS
64 rt.top = rt.bottom - GetSystemMetrics(SM_CYHSCROLL);
65 FillRect(ps.hdc, &rt, GetStockObject(BLACK_BRUSH));
66#endif
67 */
68 EndPaint(hWnd, &ps);
69}
HWND hWnd
Definition: settings.c:17
HGDIOBJ WINAPI GetStockObject(_In_ int)
#define BLACK_BRUSH
Definition: wingdi.h:896
int WINAPI FillRect(HDC, LPCRECT, HBRUSH)
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
BOOL WINAPI EndPaint(_In_ HWND, _In_ const PAINTSTRUCT *)
HDC WINAPI BeginPaint(_In_ HWND, _Out_ LPPAINTSTRUCT)

Referenced by PanelWndProc().

◆ PanelWndProc()

LRESULT CALLBACK PanelWndProc ( HWND  hWnd,
UINT  message,
WPARAM  wParam,
LPARAM  lParam 
)

Definition at line 82 of file panelwnd.c.

83{
84// Pane* pane;
85// ChildWnd* pChildWnd = (ChildWnd*)GetWindowLongPtr(hWnd, GWLP_USERDATA);
86// ChildWnd* new_child;
87// ASSERT(pChildWnd);
88
89 if (1) {
90 switch(message) {
91 case WM_CREATE:
92 break;
93 case WM_PAINT:
94 OnPaint(hWnd, 0/*pChildWnd*/);
95 break;
96/*
97 case WM_COMMAND:
98 pane = GetFocus()==pChildWnd->left.hWnd? &pChildWnd->left: &pChildWnd->right;
99 switch(LOWORD(wParam)) {
100 case ID_WINDOW_NEW_WINDOW:
101 break;
102 default:
103 return pane_command(pane, LOWORD(wParam));
104 }
105 break;
106 */
107 default:
109 }
110 }
111 return 0;
112}
WPARAM wParam
Definition: combotst.c:138
LPARAM lParam
Definition: combotst.c:139
static void OnPaint(HWND hWnd, ChildWnd *pChildWnd)
Definition: panelwnd.c:45
#define DefWindowProc
Definition: ros2win.h:31
Definition: tftpd.h:60
#define WM_PAINT
Definition: winuser.h:1620
#define WM_CREATE
Definition: winuser.h:1608