Code:
SETUP0 DIALOGEX DISCARDABLE 8, 18, 299, 178
STYLE DS_SHELLFONT|WS_CHILD|WS_VISIBLE
EXSTYLE WS_EX_CONTROLPARENT|WS_EX_TOPMOST
FONT 8, "Tahoma", 0, 0, 1
{
CONTROL "", 4001, "ListBox", LBS_MULTIPLESEL|LBS_SORT|LBS_NOINTEGRALHEIGHT|LBS_NOTIFY|WS_VSCROLL|WS_BORDER|WS_TABSTOP, 22, 19, 256, 44
CONTROL "Add", 4002, "Button", BS_FLAT|WS_TABSTOP, 22, 65, 50, 14
CONTROL "Remove", 4003, "Button", BS_FLAT|WS_TABSTOP, 92, 65, 50, 14
CONTROL "Clear", 4004, "Button", BS_FLAT|WS_TABSTOP, 228, 65, 50, 14
CONTROL "", 4005, "ListBox", LBS_MULTIPLESEL|LBS_SORT|LBS_NOINTEGRALHEIGHT|LBS_NOTIFY|WS_VSCROLL|WS_BORDER|WS_TABSTOP, 22, 107, 256, 44
CONTROL "Add", 4006, "Button", BS_FLAT|WS_TABSTOP, 22, 153, 50, 14
CONTROL "Remove", 4007, "Button", BS_FLAT|WS_TABSTOP, 92, 153, 50, 14
CONTROL "Clear", 4008, "Button", BS_FLAT|WS_TABSTOP, 228, 153, 50, 14
CONTROL " VC++ Program paths for X86 ", 4050, "Button", BS_GROUPBOX, 12, 7, 275, 79, WS_EX_TRANSPARENT
CONTROL " VC++ Program paths for X64 ", 4051, "Button", BS_GROUPBOX, 12, 94, 275, 79
}
See all the numbers starting with 4001 ... 4051 ... those are control ID numbers that are passed to message tosser in the lowword of the WM_COMMAND message's WPARAM. So you need to