flat assembler
Message board for the users of flat assembler.

Index > Heap > copy/clone a dialog in resource file into current window

Author
Thread Post new topic Reply to topic
sleepsleep



Joined: 05 Oct 2006
Posts: 8902
Location: ˛                             ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 334455
sleepsleep
hi,
is that possible to let say, after we compiled our application with resource file.

our app create a blank window (eg. size 400x300)
and we got a resource, with a dialog eg. size 400x300.

and we want to copy/clone everything (eg. tab control, button, edit box) into our current blank window.

is this possible?
Post 30 May 2009, 22:29
View user's profile Send private message Reply with quote
bitRAKE



Joined: 21 Jul 2003
Posts: 2915
Location: [RSP+8*5]
bitRAKE
Sure. There is a program somewhere that translates resources into API CreateWindow calls, etc. The same technique could be used dynamically to transverse the resource and create the windows.

Might want to look at the source code for ResEd by KetilO.
Post 31 May 2009, 01:03
View user's profile Send private message Visit poster's website Reply with quote
bitshifter



Joined: 04 Dec 2007
Posts: 764
Location: Massachusetts, USA
bitshifter
It would be easy, just parse the file into a dialog template.
You can create dialogs directly or indirectly its your choice.
Post 31 May 2009, 03:24
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 can attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar.

Powered by rwasa.