flat assembler
Message board for the users of flat assembler.

Index > Windows > My Custom MessageBox

Author
Thread Post new topic Reply to topic
clamicun



Joined: 04 Dec 2013
Posts: 77
Location: Muenster NRW Germany
clamicun
I use The proc CUSTOM_MB as a "Custom MessageBox" in applications.

It works well, but why ?

Please take a look at the line with !! and give me a hint.

"
"
cmp [wmsg], WM_CTLCOLOREDIT
je .wm_set_txt_color

"
"

.wm_set_txt_color:
invoke SetBkMode,[wparam],OPAQUE
invoke SetTextColor,[wparam],[MB_TXT_COLOR_ACTUAL]
invoke SetBkColor, [wparam],[MB_BG_COLOR_ACTUAL]

mov eax,[MB_hBrush] ;!!

;What happens here ?
;What is it good for ?
;It does not work without !

jmp .finish

"
"


Description:
Download
Filename: Cust_MB.zip
Filesize: 3.13 KB
Downloaded: 57 Time(s)

Post 22 Jun 2014, 12:04
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17327
Location: In your JS exploiting you and your system
revolution
MS has this to say:
Return value

If an application processes this message, it must return the handle of a brush. The system uses the brush to paint the background of the edit control.
BTW: I have this information on my website.
Post 22 Jun 2014, 12:51
View user's profile Send private message Visit poster's website Reply with quote
clamicun



Joined: 04 Dec 2013
Posts: 77
Location: Muenster NRW Germany
clamicun
Thank you revolution,

So the system uses the brush to paint the background of the edit control.

BTW - where is your site and where is Minos Korva ?
Post 22 Jun 2014, 13:17
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17327
Location: In your JS exploiting you and your system
revolution
clamicun wrote:
BTW - where is your site
There is a WWW link below all my posts. Wink
clamicun wrote:
and where is Minos Korva ?
Check my website. Laughing
Post 22 Jun 2014, 13:59
View user's profile Send private message Visit poster's website Reply with quote
clamicun



Joined: 04 Dec 2013
Posts: 77
Location: Muenster NRW Germany
clamicun
I do not think this funny and I knew that MK had something to do with bull like startrek
Post 24 Jun 2014, 16:52
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.