(Turbo Debugger) 3.0


3.0 - . 285


TDW. -
, "" , WM_PAINT, -
TDW WM_PAINT
, :
1. ࠠ 堠 ⠠ Windows Messages (
Windows), ,
Add ().
2. Set Message Filter (
) Single Message (-
),
Single Message Name ( -
). WM_PAINT ( -
, TDW ), -
Break ().
3. F9.
,
WndProc. ( ,
Windows Messages). -
switch , -
.
WndProc:
long FAR PASCAL WndProc (HWND hWnd, unsigned Message,
WORD wParam, LONG lParam)
{
switch(Message)
{
case WM_COMMAND:
return DoWMCommand(wParam, hWnd);
case WM_LBUTTONDOWN:
DoLButtonDown(hWnd,lParam);
break;
case WM_LBUTTONUP:
DoLButtonUp(hWnd,lParam);
break;


TDeb 3.0 #3-3 = 52 =
case WM_MOUSEMOVE:
DoMouseMove(hWnd,lParam);