flat assembler
Message board for the users of flat assembler.

Index > 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
caoyunbin001 27 Feb 2012, 06:29
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


Description:
Filesize: 22.02 KB
Viewed: 4881 Time(s)

2012-02-27_143335.png


Description:
Download
Filename: FASM_IDE.zip
Filesize: 201.69 KB
Downloaded: 356 Time(s)

Post 27 Feb 2012, 06:29
View user's profile Send private message ICQ Number Reply with quote
Alphonso



Joined: 16 Jan 2007
Posts: 295
Alphonso 28 Feb 2012, 06:17
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.


Description:
Filesize: 23.06 KB
Viewed: 4848 Time(s)

4.png


Post 28 Feb 2012, 06:17
View user's profile Send private message Reply with quote
caoyunbin001



Joined: 21 Jan 2012
Posts: 20
caoyunbin001 28 Feb 2012, 08:21
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
caoyunbin001 28 Feb 2012, 11:14
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


Description:
Download
Filename: FASM_IDE.zip
Filesize: 207.05 KB
Downloaded: 377 Time(s)

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
caoyunbin001 28 Feb 2012, 12:10
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: 295
Alphonso 28 Feb 2012, 12:22
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
caoyunbin001 28 Feb 2012, 12:37
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
caoyunbin001 28 Feb 2012, 13:40
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 can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.