flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
JohnFound 16 Sep 2004, 14:48
Vasilev Vjacheslav wrote: but my code deletes lines through one, where mistake? how to do it right? You have to delete items from the last to the first, because every delete changes indexes of the items next to deleted item. Simply use ebx as an index in the array and decrement it after every delete (until it becomes negative (jns lb). Also, API functions preserves ebx, so you have no need to push/pop it. Quote: 2. i have simple flat form, without border and title, how i can simple draw an rectangle on a edge of a window with my color (i try LineTo, but is not very good way, i think) Read about: Rectangle, FillRect, InvertRect, FrameRect, DrawFocusRect Quote: 4. how to convert twips to pixels and vice versa (eg. i get window rect with GetWindowRect and i trying to draw line with LineTo api-call from left-upper corner to right-upper corner, but from the right line goes out of window edge) Actually both: GetWindowRect and LineTo works with pixels. The problem is that GetWindowRect get screen coordinates (relative to the upper-left corner of the screen, but LineTo draws in client coordinates (relative to the upper-left corner of the window client area. Better try with GetClientRect. In some (particular) cases you can use ScreenToClient and ClientToScreen functions to convert coordinates. Regards. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.