flat assembler
Message board for the users of flat assembler.
 Home   FAQ   Search   Register 
 Profile   Log in to check your private messages   Log in 
flat assembler > Windows > I'm starting a new FASM IDE, but problem comes

Author
Thread Post new topic Reply to topic
caoyunbin001



Joined: 21 Jan 2012
Posts: 20
I'm starting a new FASM IDE, but problem comes
See source code,
why the WM_PAINT cannot occupy the whole window?
don't care about the DDraw,
it's used for accelerate the drawing process,
it's the same as GDI.


if you aren't running a Win7,
change the source code and remove the DWM apis
You are not allowed to download the files attached to this post. You may need to log in in order to do so.
Post 27 Feb 2012, 06:29
View user's profile Send private message ICQ Number Reply with quote
Alphonso



Joined: 16 Jan 2007
Posts: 294

Code:
        .WM_ERASEBKGND:
                mov     eax,0;-1
                ret



By not returning 0 you are telling the OS you are going to redraw the background but do not do it. Either draw the background yourself or return 0 / leave WM_ERASEBKGND out altogether and let the OS do it.

No icon because of the type of resource you set for the dialog box.

Is this what you are trying to achieve? Be careful when playing with glass.
You are not allowed to download the files attached to this post. You may need to log in in order to do so.
Post 28 Feb 2012, 06:17
View user's profile Send private message Reply with quote
caoyunbin001



Joined: 21 Jan 2012
Posts: 20
I'm going to have a class,
I'll check this later.

I managed to fix this bug later,
not just because WM_ERASEBKGND,
but another bug existed in WM_MOVE and WM_SIZE.

I'm going to finish this and put it here with the full source code.
Post 28 Feb 2012, 08:21
View user's profile Send private message ICQ Number Reply with quote
caoyunbin001



Joined: 21 Jan 2012
Posts: 20
Made a new version,
fixed all bugs with WM_PAINT,
but after read the replies,
you said it's because my WM_ERASEBKGND doesn't returns FALSE?
see FASM_IDE-副本.asm,
when changed WM_ERASEBKGND,
the windows shows nothing!
WM_PAINT didn't get sent neither!
why?Run FASM_IDE.asm in comparison.

and how to fix the icon problem?
can you give me your solution with a source?
Thanks in advance. Smile
You are not allowed to download the files attached to this post. You may need to log in in order to do so.
Post 28 Feb 2012, 11:14
View user's profile Send private message ICQ Number Reply with quote
caoyunbin001



Joined: 21 Jan 2012
Posts: 20
fixed all other bugs currently found,
except for the WM_ERASEBKGND problems,
see one reply previously.
and why the icon problem is because of the resource?
how did you realize that?


Last edited by caoyunbin001 on 28 Feb 2012, 12:36; edited 2 times in total
Post 28 Feb 2012, 12:10
View user's profile Send private message ICQ Number Reply with quote
Alphonso



Joined: 16 Jan 2007
Posts: 294

caoyunbin001 wrote:

when changed WM_ERASEBKGND,
the windows shows nothing!

Shows standard white background for me. I'm not a DDraw user so can not help you with that.


caoyunbin001 wrote:

and how to fix the icon problem?

The problem is with the resource, not code. Use RegEd to change IDD_DLG1 Border from ModalFrame to Dialog and finish off with GoRC.
Post 28 Feb 2012, 12:22
View user's profile Send private message Reply with quote
caoyunbin001



Joined: 21 Jan 2012
Posts: 20

Alphonso wrote:

caoyunbin001 wrote:

when changed WM_ERASEBKGND,
the windows shows nothing!

Shows standard white background for me. I'm not a DDraw user so can not help you with that.


caoyunbin001 wrote:

and how to fix the icon problem?

The problem is with the resource, not code. Use RegEd to change IDD_DLG1 Border from ModalFrame to Dialog and finish off with GoRC.



thanks!
and I did fixed the resource problem.
Post 28 Feb 2012, 12:37
View user's profile Send private message ICQ Number Reply with quote
caoyunbin001



Joined: 21 Jan 2012
Posts: 20
Fixed the WM_PAINT problem,
when return 0 to WM_PAINT,
it not only does validate the window,
but also calls another system internal procedure to clear the window
Post 28 Feb 2012, 13:40
View user's profile Send private message ICQ Number 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 cannot download files in this forum


Powered by phpBB © 2001-2005 phpBB Group.

Main index   Download   Documentation   Examples   Message board
Copyright © 2004-2013, Tomasz Grysztar.