Deal or No Deal listbox prob
Having a prob sending items to the listboxes. There are three list boxes high side low side and offer.
I have no idc-text as the example came from. Have tried sendmessage and setdlgitem. The prob seems to be addressing the listbox.
SetDlgItemText(hwnd, IDC_TEXT, "This is a string
is how the listbox is setup. Have tried “creatbuttonlistboxoffer” in the sendmessage and setdlgitemtext spots id. Where idc-listbox or idc-text would be. I left them in the comments. Errors are can not convert void to hwnd etc. tried casting them that do not work eighter. Meow! Could redo code like winforge examples using resource style listbox but want to know how to send with using creatwindowex way. Attached I hope is code.
void creatbuttonlistboxoffer( HWND hwnd )
HWND Button = CreateWindow(
"LISTBOX", // predefined class
"NO DEAL!", // button text
WS_VISIBLE | WS_CHILD | LBS_HASSTRINGS , // styles
// Size and position values are given explicitly, because
// the CW_USEDEFAULT constant gives zero values for buttons.
130, // starting x position
190, // starting y position
180, // button width
100, // button height
hwnd, // parent window
NULL, // No menu
(HINSTANCE) GetWindowLong(hwnd, GWL_HINSTANCE),
NULL); // pointer not needed
thank you meow