Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to develop a pop-up window in VC++? 1

Status
Not open for further replies.

johnmird

Programmer
Apr 24, 2008
1
US
Hi Group,

I want to design a pop-up window for the below scenario in VC++.

Here is my requirement.

1. I've more than one user with the same CallName.
E.g: First Name Last Name DOB CallName
John Clay 11/23/1678 John
John Cathy 01/06/1777 John

2.When i search DB by CallName, it may give
me more than one user details. ( E.g : searched DB by CallName as John)

3. When the result of the query is more than one user, i should pop-up a window with all user details whose
CallName is Same.

How can i implement this Pop-up window for the above scenario.

Thanks in advance.


John
 
Use the resource editor to make a fairly simple dialog box with a listbox and Ok and Cancel buttons. Set the Ownerdraw style on the listbox.

Call "DialogBox" to display the dialog, or "DialogBoxParam" if you're passing the list of items to the dialog.

In the dialog procedure,
1) In response to the WM_OPENDIALOG message, populate the list box with the list of items, either created here or passed in via the LPARAM parameter.
2) In response to the LM_OWNERDRAWITEM message (I think that's the name, the puter with the MS library installed on it is temporarily belly up), draw each string (or partial string if you want your columns to line up) with DrawText.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top