Add a background to a dialog Box

RBCC

2009-02-03 04:11:43

How do I add a background to a dialog box?? John :D

florian

2009-02-03 09:50:06

Hi, you may be able to do that, depending if the dialog box is visible in Restorator as a resource. Can you copy/paste the dialog code (e.g. in RC mode) here, and tell me what kind of background you'd like?

If it's a "Dialog" resource, you can also search MSDN for how to design such dialog resources.

Thanks,
Florian

RBCC

2009-02-08 03:53:56

CONTROL "", 2003, "STATIC", SS_BITMAP | SS_CENTERIMAGE, 126, 26, 99, 64, WS_EX_TRANSPARENT

In the above line do I put the resource number in the ""? Or where the 2003 is ?John

florian

2009-02-18 20:58:02

where your "" is you should put the number or the name of the BItmap resource that you want to display there.

Regards,
Florian

RBCC

2009-07-22 09:42:01

Whats the 2003 for?John

RBCC

2009-07-22 09:44:43

with or without the quotes?

RBCC

2009-07-23 17:22:47

this is in Vista? John

florian

2009-07-27 12:36:17

Hi,

all generic "CONTROL" statements follow this scheme:

Code: Select all

CONTROL text, id, class, style, x, y, width, height [, exstyle [, helpID]]
therefore, the 2003 above is the ID of the control. The ID is used by the program code to identify the control. If you add a control that is unknown by the program code, the ID is irrelevant. You should just try to use an ID that is not used elsewhere in that program.

Such resources will work with all Windows versions.

Regards,
Florian

RBCC

2009-07-27 15:37:30

Is the control the picture for the background? if the picture is named 110 then the id is 110? John

florian

2009-07-27 23:41:39

in that case, the "text" is the name of the Bitmap resource.

Regards
Florian

RBCC

2009-07-28 02:27:32

Do I change the 2003 to 110? jOHN :D

RBCC

2009-07-28 02:29:22

Should it look like:
CONTROL "110", 2003, "STATIC", SS_BITMAP | SS_CENTERIMAGE, 126, 26, 99, 64, WS_EX_TRANSPARENT?
John

RBCC

2009-07-28 03:29:10

Could you show the final accurate line for the above? John :D:mrgreen:

florian

2009-07-31 14:57:40

I guess it should be this:
CONTROL 110, 2003, "STATIC", SS_BITMAP | SS_CENTERIMAGE, 126, 26, 99, 64, WS_EX_TRANSPARENT

only use quotes if not using a number.
Florian