Message board for the users of flat assembler.
> Windows > I'm starting a new FASM IDE, but problem comes
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
|27 Feb 2012, 06:29||
Alphonso 28 Feb 2012, 06:17
.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.
|28 Feb 2012, 06:17||
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.
|28 Feb 2012, 08:21||
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?
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.
|28 Feb 2012, 11:14||
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
|28 Feb 2012, 12:10||
Alphonso 28 Feb 2012, 12:22
Shows standard white background for me. I'm not a DDraw user so can not help you with that.
The problem is with the resource, not code. Use RegEd to change IDD_DLG1 Border from ModalFrame to Dialog and finish off with GoRC.
|28 Feb 2012, 12:22||
caoyunbin001 28 Feb 2012, 12:37
and I did fixed the resource problem.
|28 Feb 2012, 12:37||
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
|28 Feb 2012, 13:40||
< Last Thread | Next Thread >
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.