#define IDI_ ???

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
jorge_rivero
Posts: 24
Joined: Tue Nov 07, 2017 6:41 am
DBs Used: DBF, Mysql
Location: Capital Federal, Buenos Aires, ARGENTINA

#define IDI_ ???

Post 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???
User avatar
AUGE_OHR
Posts: 2093
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: #define IDI_ ???

Post by AUGE_OHR »

hi,

"where" did you found IDI_HMG :?:
have fun
Jimmy
jorge_rivero
Posts: 24
Joined: Tue Nov 07, 2017 6:41 am
DBs Used: DBF, Mysql
Location: Capital Federal, Buenos Aires, ARGENTINA

Re: #define IDI_ ???

Post 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)
User avatar
gfilatov
Posts: 1090
Joined: Fri Aug 01, 2008 5:42 am
Location: Ukraine
Contact:

Re: #define IDI_ ???

Post 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
Kind Regards,
Grigory Filatov

"Everything should be made as simple as possible, but no simpler." Albert Einstein
jorge_rivero
Posts: 24
Joined: Tue Nov 07, 2017 6:41 am
DBs Used: DBF, Mysql
Location: Capital Federal, Buenos Aires, ARGENTINA

Re: #define IDI_ ???

Post by jorge_rivero »

Gracias, ahora entendi.
Post Reply