 |
|
 |
Hello! I'm programming a database application in VC++ 2010 purely on Win32 API and DB classes. I started using ListView common control for showing tables data. I plan also support for any SELECT queries, and also - support for editing data right in the grid. But... ListView is messed around items, but not subitems. I can't select subitemes. Nor I can edit their values right in the grid. Is there a way to avoid this bottleneck? Maybe subclassing a window will be a hit? If someone will give some hints, maybe post links to some useful resources, I will appreciate this!
NB! Don't wanna move to .NET or С++ Builder, as one of my goals when I started this project was to maintaim my WinAPI skills!
|
|
|
|
 |
|
 |
Unfortunately the ListView does not offer this functionality so you would need to use subclassing to add it yourself. Alternatively you could try a Google search to see if anyone has implemented a GridView in pure Win32. Our Great Leader[^] has done one in MFC[^] so you could take a look at that and see if it can be adapted to your needs.
Programming is work, it isn't finger painting. Luc Pattyn
|
|
|
|
 |
|
 |
Richard, thanks for the link! I never wrote MFC-based programs, but I think that I can borrow some ideas from there.
Now I start thinking that I can get rid of the Header Common Contol and draw the contents of the table all by my self, not worring only of the grid headers.
|
|
|
|
 |
|
 |
Hello friends,
I want to write a Windows terminal server software just like thinstuff terminal server, but dont know how to go about it. I want my WIndows 7 and XP machines to be terminal server. Can someone help?
|
|
|
|
 |
|
 |
GS_windows wrote: but dont know how to go about it.
In that case you should start here[^].
Binding 100,000 items to a list box can be just silly regardless of what pattern you are following. Jeremy Likness
|
|
|
|
 |
|
 |
GS_windows wrote: I want my WIndows 7 and XP machines to be terminal server.
Windows XP and Windows 7 allow for remote sessions. On your client computer, start "Remote Desktop Session" from the Accessories menu of the Start menu, and enter the name or IP address of your "server" (alternatively use Run -> mstsc.exe).
It may be necessary to enable Remote Sessions on the "server" computers; and do not forget to add some users to the group of "Remote Desktop Users".
|
|
|
|
 |
|
 |
Hi All:
I created an event subscription for events I created that gets them sent to a Forwared Event log from multiple computers. When I perform a query against the ForwaredEvent log in a US environment I get three nodes in each of my returned events. The EventData node, the system node and the RenderingInfo node. When I perform the same query on a Spanish server the RenderingInfo node never shows up in my results.
Any thoughts, ideas or directions would be greatly appreciated,
K
|
|
|
|
 |
|
 |
I know it is an old thread, but I think it is worth to explain the problem.
You wrote console application. Console does not process any messages, hence your GetMessage (as you pointed) is blocking the thread since it waits for the message to come. There is no messages to handle and you are sitting in the GetMessage without ever exiting.
Put a break point in the message loop and see if it is ever hit.
JohnCz
|
|
|
|
 |
|
 |
If whatever god foresaken language you're using works like C++ then the compiler will generate a default constructor for you. This default destructor will call the destructors for the data members for you (in the reverse order they were constructed).
If it doesn't work like C++ then all bets are off .
Cheers,
Ash
|
|
|
|
 |