Слово
«hwnd»впервые сказано пользователем
Cat_Kira 18.10.2007 в 21:37,
и с тех пор употреблялось
29 раз.
Сообщения со словом
«hwnd»
Запрос выполнился за
0.0032 сек.
- 30.04.2008, 02:21. Sainell в теме
«C++»
... пост arrk надо в 36 строке заменить bool oncreate hwnd lpcreatestruct на bool oncreate hwnd lpcreatestruct
- 29.04.2008, 22:47. la_fou в теме
«C++»
... include windows h include windowsx h bool oncreate hwnd lpcreatestruct void onpaint hwnd void ondestroy hwnd lresult callback wndproc hwnd uint wparam lparam hpen hpen hbrush hbrush int winapi winmain hinstance hinst hinstance lpstr int char szclassname mainwindow char sztitle programm 6 msg msg wndclass wc zeromemory wc sizeof wc wc lpfnwndproc wndproc wc hinstance hinst wc hicon loadicon null idi application wc hcursor loadcursor null idc arrow wc hbrbackground createsolidbrush rgb 200 200 100 wc lpszclassname szclassname registerclass wc hwnd hwnd createwindow szclassname sztitle ws overlappedwindow 20 20 500 190 hwnd desktop null hinst null showwindow hwnd sw shownormal while getmessage msg null 0 0 dispatchmessage msg return 0 lresult callback wndproc hwnd hwnd uint msg wparam wparam lparam lparam switch msg handle msg hwnd wm create oncreate handle msg hwnd wm paint onpaint handle msg hwnd wm destroy ondestroy default return defwindowproc hwnd msg wparam lparam bool oncreate hwnd lpcreatestruct hpen createpen ps solid 4 rgb 150 0 0 hbrush createsolidbrush rgb 255 120 120 return true void onpaint hwnd hwnd paintstruct ps char sztext1 ellipse hdc hdc beginpaint hwnd ps setbkmode hdc transparent settextcolor hdc rgb 0 0 200 textout hdc 155 5 sztext1 strlen sztext1 selectpen hdc hpen selectbrush hdc hbrush ellipse hdc 130 40 230 140 endpaint hwnd ps void ondestroy hwnd postquitmessage 0 выдает такие ошибки см файл
- 18.10.2007, 21:37. Cat_Kira в теме
«Си++»
... спасибо огромное за идею но все куда проще void onpaint hwnd hwnd paintstruct ps hdc hdc beginpaint hwnd ps selectbrush hdc hbrush selectobject hdc getstockobject null pen if x 2 pie hdc 250 40 350 140 350 40 350 140 else ellipse hdc 250 40 350 140 endpaint hwnd ps void ontimer hwnd hwnd uint x 1 invalidaterect hwnd null true if x 10 killtimer hwnd 1