Is it possible calling Listview from menu or by clicking button in a new window?
if you mean having the listview in the menu - not sure about that
but, you can always open a dialog with a listview in it
you may enjoy this demo by Chib777 with source, though...
http://www.4shared.com/file/m1BJWoRF/XXControls.html
shows you how to do owner-drawn menus and controls
Of course you can call it, it's phone number is 212-555-2368 :toothy
You can send messages to the listview to do many things to/with it http://msdn.microsoft.com/en-us/library/windows/desktop/bb774737(v=vs.85).aspx
I will make an accountany program so i will need open listview in dialog
for daily accounts for general accounts etc....
so i need listview again and again
i dont know how to make it yet :bg
Gunner
that phone is busy maybe Listview is talking with his girlfriend :bdg
dedndave
connecting to that site is forbidden to my IP
That number will never be busy... Change the area code to your area code and call it, it will direct you to 411 for your area code :-) Actually it is - (area code)555-1212 but any number after 555 should work.
If you need to create a few listviews, use CreateWindowEx
1. http://www.gunnerinc.com/files/masm32stuff/XXControls.zip
2. http://www.gunnerinc.com/files/masm32stuff/XXControlsTXTeng.zip
send me a PM with your email :P
all controls, dialogs, scrollbars, etc are really windows created using a system-defined class
i.e., you can create them with CreateWindowEx
for a listview control, i think it is
szListViewClass db 'SysListView32',0
so - to learn about that and find some examples, google "SysListView32"
there are a few different functions for creating dialogs in code
a bit fun to play with - lol
CreateDialog
CreateDialogIndirect
CreateDialogIndirectParam
CreateDialogParam
again, they all wind up calling CreateWindowEx, internally :P
maybe a simple popup window/listview is what you want?
cool qWord :U
i had to add InitCommonControls for XP and fix the INCLUDE path
seems like you ought to be able to stick that in a menu, somehow :P
Quote from: dedndave on February 20, 2012, 01:26:49 AM
i had to add InitCommonControls for XP and fix the INCLUDE path
fixed :bg
Thanks gunner n qword :U
I made it by using button
but after close Listview ....Closing Menu too
I dont know What's wrong
Create WndProcs for each window. Your windows/dialogs have different behaviours -> the program is closed, because the pretended child-Dialog send the quit message.
Also it is a very bad idea to jump out of the WndProc back to the entry point.
(seems like a failed try to create a superclass...)
Yes qWord as you said
i separated windows procs and
I made a sample program
after clicking button then 2nd window (Listview)is opening and menu window is closing automaticly
When second window closed it turns back Button menu
Exit is just from Button Menu
Force