Rev 7163 | Rev 7182 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7163 | Rev 7166 | ||
---|---|---|---|
Line 331... | Line 331... | ||
331 | { |
331 | { |
332 | $shr eax,cl |
332 | $shr eax,cl |
333 | $and eax,1 |
333 | $and eax,1 |
334 | } |
334 | } |
Line -... | Line 335... | ||
- | 335 | ||
- | 336 | :void SetClientScreenArea(dword _left, _right, _top, _bottom) |
|
- | 337 | { |
|
- | 338 | EAX = 48; |
|
- | 339 | EBX = 6; |
|
- | 340 | ECX = _left * 65536 + _right; |
|
- | 341 | EDX = _top * 65536 + _bottom; |
|
- | 342 | $int 64; |
|
- | 343 | } |
|
335 | 344 | ||
Line 336... | Line 345... | ||
336 | //------------------------------------------------------------------------------ |
345 | //------------------------------------------------------------------------------ |
337 | 346 | ||
338 | :void DefineAndDrawWindow(dword _x, _y, _w, _h, _window_type, _bgcolor, _title, _flags) |
347 | :void DefineAndDrawWindow(dword _x, _y, _w, _h, _window_type, _bgcolor, _title, _flags) |
Line 542... | Line 551... | ||
542 | :void DefineDragableWindow(dword _x, _y, _w, _h) |
551 | :void DefineDragableWindow(dword _x, _y, _w, _h) |
543 | { |
552 | { |
544 | DefineAndDrawWindow(_x, _y, _w, _h, 0x41,0x000000,NULL,0b); |
553 | DefineAndDrawWindow(_x, _y, _w, _h, 0x41,0x000000,NULL,0b); |
545 | } |
554 | } |
Line -... | Line 555... | ||
- | 555 | ||
- | 556 | :void DefineUnDragableWindow(dword _x, _y, _w, _h) |
|
- | 557 | { |
|
- | 558 | DefineAndDrawWindow(_x, _y, _w, _h, 0x01, 0, 0, 0x01fffFFF); |
|
- | 559 | } |
|
546 | 560 | ||
547 | :void EventDragWindow() |
561 | :void EventDragWindow() |
548 | { |
562 | { |
549 | dword tmp_x,tmp_y; |
563 | dword tmp_x,tmp_y; |
550 | dword z1,z2; |
564 | dword z1,z2; |