Sending and getting ID

This is a discussion on Sending and getting ID within the Windows Programming forums, part of the Platform Specific Boards category; I print the dates, which I get from SQL in a Listbox. I have managed to control double-clicks (when I ...

  1. #1
    Registered User
    Join Date
    Nov 2004
    Location
    Slovenia, Europe
    Posts
    115

    Sending and getting ID

    I print the dates, which I get from SQL in a Listbox. I have managed to control double-clicks (when I click on a date, dialog shows up). Now, I want to print detailed informations in that dialog, based on a date, which I double-clicked in a Listbox in main window...(I create a new SQL query, of course...)...

    How can I send value of string in Listbox to a Dialog?

    Thanks for help!
    Last edited by publikum; 02-02-2005 at 11:05 AM.
    [C++]
    IDE: DevC++ 4.9.9.2 (GCC 3.4.2)
    2nd compiler: g++ (GCC 3.4.3/4.0.0)
    3rd compiler: Borland 5.5
    [C#]
    IDE: Microsoft Visual C# Express 2005
    2nd IDE: SharpDevelop
    2nd compiler: csc in Command Prompt
    .NET Framework: 2.0
    [PHP]
    Core: 5.1.0 beta 3
    IDE: PHPEdit
    2nd IDE: Notepad
    Favourite extensions: exif,gd2,mysql
    Favourite PEAR packages: DB, XML_RSS, ID3
    Favourite databases: SQLite, MySQL

  2. #2
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    One possibility is to use either DialogBoxParam or CreateDialogParam to create your modal/modeless dialog; the last parameter of either function enables you to pass user defined data to the dialog which you can access as the lParam of the dialog's WM_INITDIALOG message.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21