flat assembler
Message board for the users of flat assembler.

Index > Windows > How to create custom desined windows?

Goto page Previous  1, 2
Author
Thread Post new topic Reply to topic
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
LocoDelAssembly
This is what Resource Hacker sees:
Code:
10 DIALOG 70, 70, 332, 176
STYLE DS_MODALFRAME | DS_CENTER | WS_POPUP | WS_VISIBLE
CAPTION ""
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
{
   CONTROL "", 0, "???", 0x80000, 104, 111, 109, 97 , 0x00610054
   CONTROL " ", 4881, "??????", 0x33204444, 16452, 13059, 13107, 4369 , 0x44441133
}    


Yes, the dialog is completely messed :S
Post 25 Nov 2006, 14:20
View user's profile Send private message Reply with quote
TmX



Joined: 02 Mar 2006
Posts: 821
Location: Jakarta, Indonesia
TmX
LocoDelAssembly wrote:
Win32 Headers>>1.6 Resources wrote:
The dialog can take up to eleven parameters, first seven being required.


Or I'm using the incorrect include file?

MichaelH, no, I used the one that comes with MASM package so I'll download the SDK then.

Vasilev Vjacheslav, OK, I'll take a look.


The rc from MASM32 (Version 5.00.1823.1) fails
Try a newer rc.exe (I'm using the one from VC++ 2005 Express and it compiled fine) Wink
Post 25 Nov 2006, 14:57
View user's profile Send private message Reply with quote
Vasilev Vjacheslav



Joined: 11 Aug 2004
Posts: 392
Vasilev Vjacheslav
ok, i finished, now you fasm is enough for successful compiling


Description: source
Download
Filename: gg_no_rc.rar
Filesize: 4.19 KB
Downloaded: 137 Time(s)


_________________
[not enough memory]
Post 25 Nov 2006, 19:48
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
LocoDelAssembly
Oh, the biggest error here was using DS_SETFONT, removing it the dialog appears, with erros but appears, and correcting the other error ( http://board.flatassembler.net/topic.php?p=48449 ) the buttons appears too.

Thanks for porting the RC script to fasm and for provide us with the nice example Very Happy
Post 25 Nov 2006, 20:05
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
LocoDelAssembly
Suggestion:

At
Code:
        invoke  lstrlen,szCaption
        invoke  TextOut,[hDC],30,5,szCaption,eax
    


add
Code:
        invoke  SetBkMode,[hDC], TRANSPARENT    
before lstrlen call to get a caption more similar to GoogleTalk
Post 25 Nov 2006, 20:29
View user's profile Send private message Reply with quote
OzzY



Joined: 19 Sep 2003
Posts: 1029
Location: Everywhere
OzzY
Where can I find a good windows API tutorial for GDI and these custom drawings?

thanks
Post 26 Jan 2008, 05:58
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2

< 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.

Powered by rwasa.