- enable the bezier curve and animation of the bezier control points selection

master
pajoye 2008-01-20 16:05:56 +00:00
parent b7a002a9f6
commit 50ba0f31c8
1 changed files with 5 additions and 5 deletions

View File

@ -264,14 +264,14 @@ LRESULT CALLBACK WndProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
apt[3].x = 3 * cxClient / 4 ;
apt[3].y = cyClient / 2 ;
return 0 ;
#if 0
case WM_LBUTTONDOWN:
case WM_RBUTTONDOWN:
case WM_MOUSEMOVE:
if (wParam & MK_LBUTTON || wParam & MK_RBUTTON)
{
hdc = GetDC (hwnd) ;
// alte Kurve löschen (mit Weiß übermalen)
SelectObject (hdc, GetStockObject (WHITE_PEN)) ;
DrawBezier (hdc, apt) ;
@ -290,19 +290,19 @@ LRESULT CALLBACK WndProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
// neue Kurve (mit Schwarz) zeichnen
SelectObject (hdc, GetStockObject (BLACK_PEN)) ;
gdDrawImage(hdc, &rc);
DrawBezier (hdc, apt) ;
ReleaseDC (hwnd, hdc) ;
}
return 0 ;
#endif
case WM_PAINT:
hdc = BeginPaint (hwnd, &ps) ;
GetClientRect(hwnd, &rc);
//DrawBezier (hdc, apt) ;
gdDrawImage(hdc, &rc);
DrawBezier (hdc, apt) ;
EndPaint (hwnd, &ps) ;
return 0 ;