PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Knuth Konrad on May 24, 2005, 07:28:07 AM

Title: User defined control prefixes
Post by: Knuth Konrad on May 24, 2005, 07:28:07 AM
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
Title: User defined control prefixes
Post by: TechSupport on May 24, 2005, 08:22:07 AM
Sounds fair enough. I will add it to the wish list.

Thanks!