User defined control prefixes

Started by Knuth Konrad, May 24, 2005, 07:28:07 AM

Previous topic - Next topic

Knuth Konrad

Right now FF prefixes all window handles with HWND_ and all control handles with IDC_.

I'd like to see the ability to user define (different) prefixes for different control types like

Label: LBL_ or lbl
Textbox: TXT_ or txt

Control types not defined could still get the (default) IDC_.

Would at least help me to save some keystrokes and to easier identify the type of the control in the code. Right now I go with control names like lblMyLabel, resulting in IDC_<Dialog>_LBLMYLABEL.

Setting prefix for labels to "lbl_", for example,  would change this to lbl_<Dialog>_MYLABEL, i.e. lbl_FRMMAIN_MYLABEL. That saves three characters from the var's name (moving the lbl from the name part of the control to the prefix) and make it clearer for me.

Knuth

TechSupport

Sounds fair enough. I will add it to the wish list.

Thanks!