flat assembler
Message board for the users of flat assembler.
Index
> Windows > SetProp/GetProp vs SetWindowLong/GetWindowLong |
Author |
|
roticv 04 Sep 2004, 12:27
192mhz ram?
|
|||
04 Sep 2004, 12:27 |
|
JohnFound 04 Sep 2004, 13:11
roticv wrote: 192mhz ram? Of course 192Mbytes. Simply mistake. Fixed. |
|||
04 Sep 2004, 13:11 |
|
Foamplast 04 Sep 2004, 21:54
Why do you compare such different things? GetWindowLong/SetWindowLong operate on data linked to the window and owned by Window's GUI. SetProp/GetProp/RemoveProp operate on user-defined data linked to the window. Generally, user-defined data can be read or written and GetProp/SetProp/RemoveProp functions can operate on these data without any understanding what these data are. Unlikely, GetWindowLong/SetWindowLong should have an understanding of the data's meaning to operate correctly. Your results show that this point of view can be true.
|
|||
04 Sep 2004, 21:54 |
|
JohnFound 04 Sep 2004, 22:40
Foamplast wrote: Why do you compare such different things? Both, Set/GetProp and Set/GetWindowLong can be used as placeholders for user data for subclassed windows, custom window classes and other user data asociated with some control ( GWL_USERDATA and also the extra bytes (WNDCLASS.cbWndExtra) defined for given user registered class) So, usual method used in assembly written applications (you can check several examples here and there) is using Get/SetWindowLong, but my tests make me think that better method is namely SetProp/GetProp method. Besides that Get/SetProp is more flexible method, it seems that is is faster in some conditions and acceptable slower in worst case. Of course my tests concerns only Win98. Maybe in Win2000/XP things looks different. (but I don't think so...) Regards. |
|||
04 Sep 2004, 22:40 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.