Home > Software engineering > MFC in how smart select multiple controls (variable names in sequence) in a certain
MFC in how smart select multiple controls (variable names in sequence) in a certain
Time:10-25
Existing MFC project, including the 100 space images, set a variable called m_l1 m_l100, A string of data, such as { 0,0,0,0,13,0,56,73,0... } 0 means don't do any processing, digital representation in the first number control display images, such as 13 said m_l13 control display images, it intends to use the code { CBitmap bm. HBITMAP hB. Bitmap. LoadBitmapW (IDB_RED); HB=(HBITMAP) bitmap. GetSafeHandle (); M_lnumber. SetBitmap (hB); } Consult a great god how to put the number in the data and control variable name, had better have the code examples, thank you!
CodePudding user response:
These controls your ID is set to continuous not good processing, GetDlgItem (IDC_PICTURE_BASE + INDEX) way to get the control, including IDC_PICUTRE_BASE as constants, the INDEX for the INDEX variable ~