I tried to create a user control in .rc but the control
would not show it's controls. When I create the controls
using code everything works just fine.
Have anyone done this and got it working?
Here is what I did:
would not show it's controls. When I create the controls
using code everything works just fine.
Have anyone done this and got it working?
Here is what I did:
#define IDU_DLG 100
#define IDC_STC 1001
#define IDC_EDT 1002
#define IDC_BTN 1003
IDU_DLG DIALOGEX 6,6,199,11
CAPTION ""
FONT 8,"MS Sans Serif"
CLASS "UDCCLASS"
STYLE 0x10000000
EXSTYLE 0x00000000
BEGIN
LTEXT "MyPath:",IDC_STC,0,0,42,11,0x50000100,0x00000000
EDITTEXT IDC_EDT,43,0,142,11,0x50010000,0x00000200
PUSHBUTTON "...",IDC_BTN,187,0,12,11,0x50010000,0x00000000
END
#define IDD_DIALOG1 101
#define IDC_UDC1 10001
#define IDC_UDC2 10002
#define IDC_UDC3 10003
#define IDC_UDC4 10004
#define IDC_UDC5 10005
#define IDOK 1
#define IDCANCEL 2
IDD_DIALOG1 DIALOGEX 6,6,191,93
CAPTION "Path Setup"
FONT 8,"MS Sans Serif"
STYLE 0x10C80800
EXSTYLE 0x00000000
BEGIN
CONTROL "",IDC_UDC1,"UDCCLASS",0x50010000,0,1,191,11,0x00000000
CONTROL "",IDC_UDC2,"UDCCLASS",0x50010000,0,16,191,11,0x00000000
CONTROL "",IDC_UDC3,"UDCCLASS",0x50010000,0,31,191,11,0x00000000
CONTROL "",IDC_UDC4,"UDCCLASS",0x50010000,0,46,191,11,0x00000000
CONTROL "",IDC_UDC5,"UDCCLASS",0x50010000,0,60,191,11,0x00000000
PUSHBUTTON "OK",IDOK,121,79,32,11,0x50000001,0x00000000
PUSHBUTTON "Cancel",IDCANCEL,157,79,32,11,0x50000000,0x00000000
END
This worked for me?
#define IDD_PROGRESS 200
#define IDC_PROGRESS 101
IDD_PROGRESS DIALOGEX 10,9,250,62
CAPTION "Gradient Progress Bar Example"
FONT 8,"MS Sans Serif"
STYLE 0x10CE0000
EXSTYLE 0x00000000
BEGIN
CONTROL "",IDC_PROGRESS,"TxPROGRESS",0x50000000,5,35,239,9,0x00000000
END
Hi bitRAKE
I had a look at Tola / yours Gradient progressbar this morning.
It is very nice. But my question was not about this.
I want to be able to use a resorce editor to create a
user control consisting of some standard controls and
the be able to reuse these controls on another dialogbox.
Here is how I solved it without using a resorce editor.
I had a look at Tola / yours Gradient progressbar this morning.
It is very nice. But my question was not about this.
I want to be able to use a resorce editor to create a
user control consisting of some standard controls and
the be able to reuse these controls on another dialogbox.
Here is how I solved it without using a resorce editor.
Yeah, totally misunderstood you. That's cool - it will be very useful!