flat assembler
Message board for the users of flat assembler.

Index > Windows > [solved]Resource Editor needed (RC or Res)

Goto page Previous  1, 2
Author
Thread Post new topic This topic is locked: you cannot edit posts or make replies.
Overclick



Joined: 11 Jul 2020
Posts: 669
Location: Ukraine
Overclick 14 Jul 2020, 11:06
DimonSoft
Mixing CreateWindowEx and DialogBoxParam/CreateDialogParam doesn't have any sense and doesn't answer my question.

I have no problem to create such code using my own function or macro. The problem is that I have to manage the specifications for each child unit when DialogBoxParam just automatically loads the full tree from the Res file. My question is not about CreateWindowEx or adding child elements on it.
Here is example on flat assembler for you
Post 14 Jul 2020, 11:06
View user's profile Send private message Visit poster's website Reply with quote
DimonSoft



Joined: 03 Mar 2010
Posts: 1228
Location: Belarus
DimonSoft 14 Jul 2020, 15:55
There’s nothing there that I’ve never seen before. And I’ll just remind you the discussion flow:
Ali.Z wrote:
almost forgot to comment on this, what you see on the left side which is the editor obviously; the controls are rendered using CreateWindowEx that is why they look different.

but when compiled into a resource and used in a dialog box, then the dialog box manager will render it differently, of course that depends on the subsystem.

so if you want the modern look, you either use OWNERDRAW, or use CreateWindowEx.

Overclick wrote:
Ali.Z
I tried to use CreateWindowEx. Could you explain for the future how to link exist dialogue file to this function? I gave up and use DialogBoxParam.

DimonSoft wrote:
CreateWindowEx is what should internally be used by the dialog functions. Dialogs are just windows of a specific window class, so switching to CreateWindowEx won’t change anything. Except that you get more control over parameters passed (though most values are passed unchanged by the dialog functions) and lose the possibility to specify coordinates in dialog units instead of pixels (which is probably for good).

So, the whole CreateWindowEx buzz was about the fact that it has little to nothing to do with making controls looking prettier, except that it might let one do it in a more controllable way. Both dialog functions and CreateWindowEx are basically doing the same and the window procedures for child windows are the same in both cases.

I never said you should prefer CreateWindowEx, just noted that there’s pros and cons to both ways. For you initial problem manifest and subsystem version are pieces of puzzle (manifest being the main one), and you’ve already put a [solved] mark on the topic. What I tried to do after that is to prevent people reading the topic from false assumption that CreateWindowEx is some kind of magic. And answered your questions that looked like a request for explanation of reimplementing dialogs yourself.
Post 14 Jul 2020, 15:55
View user's profile Send private message Visit poster's website Reply with quote
Overclick



Joined: 11 Jul 2020
Posts: 669
Location: Ukraine
Overclick 14 Jul 2020, 18:11
DimonSoft
I'm not the one who argues with you. The topic is marked as solved any way. You have lost thread of conversation or you just don't know how to load the settings from the res file, so what are we talking about then?..
Post 14 Jul 2020, 18:11
View user's profile Send private message Visit poster's website Reply with quote
DimonSoft



Joined: 03 Mar 2010
Posts: 1228
Location: Belarus
DimonSoft 14 Jul 2020, 19:37
Overclick wrote:
You have lost thread of conversation

Am I?
Overclick wrote:
or you just don't know how to load the settings from the res file, so what are we talking about then?..

Well, I know at least a dozen of better ways to store settings that don’t require changing EXE file.

It’s funny to be marked as non-competent by someone who asked to show very specific stuff, which I said was not necessary, and being given links that might help in this strange wish gives a link to a very basic-level translation of pieces from FASM docs and a few other sources with outdated references at the end.

BarMentaLisk, the author of articles referenced at #2, has written them about 10 years ago, at the time of SAS IT Battles, and they’re great. He’s the guy who tried to convince me that assembler is the language that may be taught as the first one to beginners, and it made sense. But sa-sec.org hosted them for a very short period of time just as a mirror of the newspaper, and the site has been down since around 2015 when we gave up a few projects.

It was nice to see a reference to one of my colleagues there anyway, thanks.
Post 14 Jul 2020, 19:37
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20300
Location: In your JS exploiting you and your system
revolution 14 Jul 2020, 22:34
Thread closed. Too much ad hominem.
Post 14 Jul 2020, 22:34
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic This topic is locked: you cannot edit posts or make replies.

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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.