Winmain && smartphone 2003 && dialog box

I have written a winmain in vc++ for smartphone 2003. What I can use to select a line I have used combo box, but the scroll does not work. Fragment of code:
.....
case WM_COMMAND:
switch(LOWORD(wParam))

case IDC_Combobox:
switch (HIWORD(wParam))
{

case CBN_SELCHANGE:
index=
SendMessage(GetDlgItem(hDlg, IDC_Combobox), CB_GETCURSEL, 0, 0);
..............................................





Answer this question

Winmain && smartphone 2003 && dialog box

  • LutherW

    In the code snippet above you are handling combo box Selection Change notification. If you want to select a different item, elsewhere use

    SendMessage(GetDlgItem(hDlg, IDC_Combobox), CB_SETCURSEL, nItem, 0);



  • Winmain && smartphone 2003 && dialog box