listbox's api

I created a listbox on top of a window (not dialog box).
Loaded strings into box but when an item is selected the
LBN_SELCHANGE message is never sent only the LBN_SETFOCUS
message. MSDN shows LBN_SELCHANGE is the message I need.


using VC 6.0 with XP.

Does anyone have experience with this problem

Comments

  • : I created a listbox on top of a window (not dialog box).
    : Loaded strings into box but when an item is selected the
    : LBN_SELCHANGE message is never sent only the LBN_SETFOCUS
    : message. MSDN shows LBN_SELCHANGE is the message I need.
    :
    :
    : using VC 6.0 with XP.
    :
    : Does anyone have experience with this problem
    :
    [blue]Post the creation code:

    HWND hList = CreateWindow ("listbox", ...);[/blue]
  • : : I created a listbox on top of a window (not dialog box).
    : : Loaded strings into box but when an item is selected the
    : : LBN_SELCHANGE message is never sent only the LBN_SETFOCUS
    : : message. MSDN shows LBN_SELCHANGE is the message I need.
    : :
    : :
    : : using VC 6.0 with XP.
    : :
    : : Does anyone have experience with this problem
    : :
    : [blue]Post the creation code:
    :
    : HWND hList = CreateWindow ("listbox", ...);[/blue]
    :
    hwndList1 = CreateWindow(
    "listbox", // predefined class
    "", // button text
    WS_VISIBLE | WS_BORDER | WS_CHILD | WS_VSCROLL | LBS_DISABLENOSCROLL | LBS_HASSTRINGS , // styles

    20, // starting x position
    20, // starting y position
    250, // button width
    80, // button height
    hwnd, // parent window
    (HMENU) YES, // No menu
    ghInstance,
    NULL); // pointer not needed




  • : : : I created a listbox on top of a window (not dialog box).
    : : : Loaded strings into box but when an item is selected the
    : : : LBN_SELCHANGE message is never sent only the LBN_SETFOCUS
    : : : message. MSDN shows LBN_SELCHANGE is the message I need.
    : : :
    : : :
    : : : using VC 6.0 with XP.
    : : :
    : : : Does anyone have experience with this problem
    : : :
    : : [blue]Post the creation code:
    : :
    : : HWND hList = CreateWindow ("listbox", ...);[/blue]
    : :
    : hwndList1 = CreateWindow(
    : "listbox", // predefined class
    : "", // button text
    : WS_VISIBLE | WS_BORDER | WS_CHILD | WS_VSCROLL | LBS_DISABLENOSCROLL | LBS_HASSTRINGS [red][b]| LBS_NOTIFY[/b][/red], // styles
    :
    : 20, // starting x position
    : 20, // starting y position
    : 250, // button width
    : 80, // button height
    : hwnd, // parent window
    : (HMENU) YES, // No menu
    : ghInstance,
    : NULL); // pointer not needed
    :
    :
    :
    :
    :
    [blue]See RED...[/blue]
  • : : : : I created a listbox on top of a window (not dialog box).
    : : : : Loaded strings into box but when an item is selected the
    : : : : LBN_SELCHANGE message is never sent only the LBN_SETFOCUS
    : : : : message. MSDN shows LBN_SELCHANGE is the message I need.
    : : : :
    : : : :
    : : : : using VC 6.0 with XP.
    : : : :
    : : : : Does anyone have experience with this problem
    : : : :
    : : : [blue]Post the creation code:
    : : :
    : : : HWND hList = CreateWindow ("listbox", ...);[/blue]
    : : :
    : : hwndList1 = CreateWindow(
    : : "listbox", // predefined class
    : : "", // button text
    : : WS_VISIBLE | WS_BORDER | WS_CHILD | WS_VSCROLL | LBS_DISABLENOSCROLL | LBS_HASSTRINGS [red][b]| LBS_NOTIFY[/b][/red], // styles
    : :
    : : 20, // starting x position
    : : 20, // starting y position
    : : 250, // button width
    : : 80, // button height
    : : hwnd, // parent window
    : : (HMENU) YES, // No menu
    : : ghInstance,
    : : NULL); // pointer not needed
    : :
    : :
    : :
    : :
    : :
    : [blue]See RED...[/blue]
    : Your absolutely correct, Thanks for your help


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories