Page 1 of 1
#define IDI_ ???
Posted: Mon May 01, 2023 12:48 am
by jorge_rivero
Alguien tiene un listado de los #define??
Ejemplo:
#define IDI_HMG 1001
#define IDI_DEMO 1002
#define IDI_COMP 1003
#define IDI_PRINT 1004
#define IDI_SNAIL 1005
Hay alguno para usar un Abort?? o un Exit??
Donde se podria ver los #define???
Re: #define IDI_ ???
Posted: Mon May 01, 2023 1:42 pm
by AUGE_OHR
hi,
"where" did you found IDI_HMG

Re: #define IDI_ ???
Posted: Mon May 01, 2023 4:06 pm
by jorge_rivero
Hola
Esta en el ejemplo: D:\MiniGUI\SAMPLES\BASIC\MsgBox
en el Archivo: resource.h
Tengo : Harbour MiniGUI Extended Edition 23.02 (Release)
Re: #define IDI_ ???
Posted: Wed May 03, 2023 8:10 am
by gfilatov
jorge_rivero wrote: ↑Mon May 01, 2023 4:06 pm
Hola
Esta en el ejemplo: D:\MiniGUI\SAMPLES\BASIC\MsgBox
en el Archivo: resource.h
Tengo : Harbour MiniGUI Extended Edition 23.02 (Release)
Hola Jorrge,
Thanks for your interest.
In a Windows resource-definition script (.rc file), a defined constant is a preprocessor macro that can be used to define a value that is used throughout the script. These constants are defined using the #define preprocessor directive and can be used to specify a value for a resource-definition statement.
For example, imagine that you want to define a constant named ID_MY_RESOURCE that has the value 10001. You can define this constant at the top of your .rc file using the #define directive like this:
#define ID_MY_RESOURCE 10001
You can then use this constant to specify the value of the ID parameter in a resource-definition statement like this:
ID_MY_RESOURCE BITMAP "my_bitmap.bmp"
This statement defines a bitmap resource with the ID_MY_RESOURCE constant as its ID value and specifies that the bitmap is stored in the file "my_bitmap.bmp".
In summary, defined constants in a Windows resource file .RC are preprocessor macros that can be used to define a value that is used throughout the script. They are defined using the #define directive and can be used to specify a value for a resource-definition statement.
Source:
https://learn.microsoft.com/en-us/windo ... statements
Re: #define IDI_ ???
Posted: Thu May 04, 2023 4:10 pm
by jorge_rivero
Gracias, ahora entendi.