flat assembler
Message board for the users of flat assembler.

Index > Windows > Simple API Call

Author
Thread Post new topic Reply to topic
Hicel



Joined: 09 Sep 2004
Posts: 55
Hicel
Hi!
I hope someone can help me out
I try to resize a Dialog with API but i don't get it to work.
The dialog is already subclassed: hwndForm1
Tried it with MoveWindow but if I use MoveWindow I have to know the position of the dialog. But I don't want to move the dialog, just resize.

Thanks,
Hicel
Post 11 Sep 2004, 03:33
View user's profile Send private message Reply with quote
roticv



Joined: 19 Jun 2003
Posts: 374
Location: Singapore
roticv
Quote:
Tried it with MoveWindow but if I use MoveWindow I have to know the position of the dialog. But I don't want to move the dialog, just resize.

Yes that is the correct api. Use it together with GetClientRect to get the x and y values.
Post 11 Sep 2004, 03:48
View user's profile Send private message Visit poster's website MSN Messenger Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3500
Location: Bulgaria
JohnFound
Hm, what about SetWindowPos with flags SWP_NOMOVE ? It is most universal function, IMHO the rest are simply wrappers of it.

Regards.
Post 13 Sep 2004, 03:21
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
Hicel



Joined: 09 Sep 2004
Posts: 55
Hicel
Sorry for this late reply my internet wasn't working for 3 days.
MoveWindow worked just fine but i used GetWindowPlacement insted of GetClientRec.
Because GetClientRec didn't receive any Window POSITON information

SetWindowPos should work too. But i read your reply too late Wink

Anyway! Thanks!
Post 13 Sep 2004, 21:55
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.

Powered by rwasa.