If form was your form object, try: (HWND)form.Handle.ToPointer()
Joel Lucsy
Posts
-
Where's the HWND in Form? -
button appearance remain unchanged after VS2005 conversionDid you try "system" instead of "standard" for the FlatStyle?
-
Interprocess communication??You can not, I repeat CAN NOT share a DC across a thread boundry, process boundry, and heaven forbid, machine boundry. VNC works by communicating bitmaps, Remote Desktop shares data at a much lower level, but writing your own would proably require many man-years worth of work. I suggest you stick with VNC as it is as much an industry standard as you'll likely to get.
-
CxImage - again - pDib questionWhat about GetDIB()? Thats all you'd need if you're using for StretchBlt or equiv. I've used CxImage quite a bit. -- Joel Lucsy
-
Using ILMerge to embedd C++ DLL into C# EXEQuick answer: you can't. ILMerge will only merge .NET assemblies. Long answer: yes or maybe. One method is to embed the dll as a resource and extract and load it at runtime. This method works as I've done it before. Another method is to extract the resource into memory and directly call the C++ functions. I know its possible to do it from unmanaged, but haven't attempted it from managed yet. -- Joel Lucsy
-
Tristate checkboxes in TreeView?As has been said, no, you're not missing anything. The way to do it is to use imagelists with graphics stolen from elsewhere and just set the item to the check in question. You'd have to override mousedown to determine if a click is on-top of the image and then switch it to the appropiate image. That said, I'm sure there are third-party controls that already do it, but I never looked into it myself.
-
Richedit-like HTML control?As has been mentioned QHTM works pretty good and have used it in a number of products. However, I'm now using HTMLayout from http://www.terrainformatica.com/[^] as it supports CSS! -- Joel Lucsy
-
Recommendations for a web-based Bug Tracking SystemIf you can spend money, try Jira at http://www.atlassian.com/jira[^]
-
FileSync Question...How about FolderShare?
-
CreateProcess issueYou are getting a "ghost" of the app. The system will create a dummy window that mimics the original when the original stops processing. Not sure why they did this, but thats the second window you're seeing. It won't actually do anything. Your best bet is to reengineer it so that you don't block in the original app while waiting for the second to close. Maybe disable the application window and start a thread that waits for the second app to finish, then enable everything again.
-
1999 joke ported to 2007 and adjusted for C#I gotta ask, are those supposed to be jokes? They didn't make me laugh. In fact, I winced. They reminded me of old black-n-white movies where you can definitely tell its an old movie by their speech patterns.
-
Choice of Font for VS Code EditorCurrently Consolas, but used to use one called "Arial Monospaced". I used to have everything in Arial, but came across the new ones for Vista and I'm completely sold. Segoe UI for everthing that doesn't want a monospaced font, Consolas otherwise. I've found Consolas very readable for characters that are similar, 0's have a slash, o's dont. 1's and l' are easily indentified, and lowercase letters are larger than normal for readibility, but are distinct from uppercase.
-
Selection is gray in a CListCtrlBummer. I'm fresh out of ideas. I'm sorry I couldn't figure it out for you. Hope something clicks and it works out.
-
Selection is gray in a CListCtrlAh, sorry, too many different compilers/languages on my system. It'll be in the resources of the project, you'd have to delete it from there.
-
Selection is gray in a CListCtrlVC7 has an option during project creation for including a manifest for C++ apps that defaults to "ON". Check your project or project/res directory for a .manifest file. If you have one, then its probably being used. Try turning it off.
-
Where is always show selection in Listviews?Look at "HideSelection".
-
Selection is gray in a CListCtrlOh, um, are you using a manifest under VC6? I know when you use manifests (to get the XP style look), imagelists behave differently. I think, but not certain by any means, that the newer compilers handle this without problems, but I'm fairly sure VC6 won't. I've found CImageList won't work quite right, I had to use the macros like ImageList_Create for it to work right.
-
In-memory DB engine?Sorry to take so long to see your message, but investile sqlite as it'll have the features you're most likely to want. There should be a number of wrappers for .NET out there.
-
Selection is gray in a CListCtrlJust to be safe, does explorer highlight in blue when you select a file? Its possible to have your "scheme" have the highlight color set to gray. As another thought, is your ListView (or ListCtrl) derived from anything, meaning did you use a class from an outside source? Just wondering if perhaps you or that class might be using NM_CUSTOMDRAW to override painting. Also, what styles are being used on the view, single selection, full-row selection, show selection always, owner data, owner draw? Personally I've never seen a basic ListCtrl ever paint incorrectly without some kind of interference from code.
-
Selection is gray in a CListCtrlWhen you select an item using the mouse, different from the that is selected by default, does it appear in blue, or grey?