Howdy, Stranger!

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

Categories

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

  • AsmGuru62AsmGuru62 Member Posts: 6,519
    : 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]
  • 23timeslucky23timeslucky Member Posts: 20
    : : 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




  • AsmGuru62AsmGuru62 Member Posts: 6,519
    : : : 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]
  • 23timeslucky23timeslucky Member Posts: 20
    : : : : 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


  • Shawn CarterShawn Carter Member Posts: 0

    _ < http://forcoder.org /> free video tutorials and ebooks about [ Visual Basic .NET, MATLAB, Perl, C++, Python, Assembly, C#, Delphi, Objective-C, PHP, C, R, Scratch, PL/SQL, Ruby, Java, Visual Basic, Swift, JavaScript, Go Clojure, Apex, ABAP, Lua, Scala, VBScript, Bash, Hack, Rust, Transact-SQL, Alice, Erlang, COBOL, ML, SAS, Logo, Kotlin, Prolog, Lisp, Fortran, Scheme, LabVIEW, FoxPro, Awk, Dart, F#, Ada, Crystal, Julia, D ] ____

Sign In or Register to comment.