Hi all, I'm using a CTreeCtrl with checkboxes enabled and have two questions: 1. How can I query if a particular HTREE item has a checked checkbox or not 2. How can I be notified when checkboxes are checked/unchecked? Thanks :-) Mark
mmica
Posts
-
CTreeCtrl and Checkboxes -
CDialog in the Task BarThat was pretty easy :-) Thanks
-
CDialog in the Task BarHi all, I'm writing an application which incorporates a number of tools. Each tool is hosted in a CDialog class. Is it possible for a CDialog class to appear in the Task Bar? It's quite annoying having to minimize all other windows to find it. Mark
-
[Newbie] A button with a bitmapWhat do you mean?
-
[Newbie] A button with a bitmapHi all, I'm trying to set up a simple dialog with a button that has a bitmap instead of text. From the dialog editor I set the "Bitmap" option for the button and in the OnInitDialog() method of the dialog, I did the following: m_button.SetBitmap(LoadBitmap(NULL, MAKEINTRESOURCE(IDB_PLAY))); The button appears but no bitmap. Anyhelp would be GREATLY appreciated :-) Mark
-
Debuging a service with VC++Hi all, I have written a simple service and would like to debug it with VC++. Is this possible? So far I have only managed to do it by installing a low-level debugger but that's a bit akward to use. Thanks, Mark
-
CListCtrl - Highlighting all of the selected rowHi all, I'm writing a simple dialog with a listbox in "report" mode. My problem is that in order for a user to select an item in the list, (s)he has to click on the 1st column in the list. Also, this will only highlight the first column and not the rest of the row. This is functional ofcourse but it would be nice the have the whole row highlited. Any help would be greatly appreciated :-) Mark
-
Adding Items to CTabCtrlHi all, I am using AddItem() to add tabs to a CTabCtrl but don't know how to actually add content to each tab. Can I just design dialogs or PropPages from the resources and load them into a tab? Mark
-
Displaying CPropertySheet in a DialogBut I need to add a tree control outside the property sheet and have nodes on the tree add/remove pages from the property sheet accordingly. I think this can't be done with the CPropertySheet as a main window. Will look at the examples tho. Thanks :-)
-
Displaying CPropertySheet in a DialogHi all, I'm kinda new to MFC and come from the world of Java so please bear with me. I have a dialog on which (amongst other things) I want to display a CPropertySheet (along with CPropertyPages ofcourse). Being the newbie that I am, I did the following: In the OnInit() method of my dialog I put down the following code:
//m_ps is a member variable of type CPropertySheet m_ps.Construct("Test Property Sheet", this, 0); m_ps.SetWindowPos(this, 50,50,100,100, 0); m_ps.ShowWindow(SW_SHOW);
This doesn't work (and also causes an assert). Can anyone help me out please? -
Knowing with Network Interface will be usedHi all, I am writing a system where a client communicates with a server and amongst other things tells the server what the client's IP and subnet mask are. However, when there are more than 1 network cards on a PC, how can I programmaticaly know which interface a packet is going to be sent on (for a particular destination)? I know how to get a list of interfaces and relevant details but don't know which one to use. Mark
-
Layout Guidelines (Resizing)Hi all, :) In a dialog, is it possible to align a control with layout guidelines such that if the dialog is resized, the conrol is also resized accordingly? Mark
-
GHAAAAAAARGH!!! STATUS_ACCESS VIOLATIONHi all, I'm going out of my mind on this problem and would really appreciate some help. I am currently writing an NT service that has two threads running. One thread is at a point where it has to create a network message and send it over a socket. However, when I try to malloc some memory for a buffer I get an NT_STATUS_ACCESS_VIOLATION exception. The code looks simple enough to me:
totlen = sizeof(BH_MESSAGE) + msglen; //This evaluates to 306 char* totbuf = (char *) malloc(totlen);
Any ideas coz I'm really going :wtf: crazy Regards, Mark -
Filter Driver for File OperationsHi all, I've been assigned the task of writing a filter driver to intercept IO calls to storage devices and selectively allow (or dissallow) them through. I'm quite new to drivers so I was wondering if anyone could point me to a good starting point. Thanks for your help, Mark
-
Gaining Exclusive Access over a used volumeThanks... I will try that :-) This processing will take place at night so no users should be using the PCs in the office at that time. This is just a precautionary measure.
-
Gaining Exclusive Access over a used volumeHi, I've written a small administration tool that does some processing on removable devices. The problem is I need to lock the volume before processing. I have managed to do this but only if noone is using the volume at the time when I am locking. Can I gain exclusive access over a volume and force other processes to not use it for a while? Mark
-
Threads in ClassesWorked wonderfuly. Thanks :-)
-
Threads in ClassesHi all, When using the CreateThread within a class, is it possible to provide a method of the class as the lpStartAddress?
m_hBroadcastThread = CreateThread(0,0, (LPTHREAD_START_ROUTINE)BroadcastThread, 0,0,&id);
... where BroadcastThread is the name of a method within the class. It's header is as follows:DWORD CNotificationsHandler::BroadcastThread(LPDWORD param)
I keep getting the following compiler error: error C2440: 'type cast' : cannot convert from '' to 'unsigned long (__stdcall *)(void *)' Your help would be greatly appreciated. Mark -
Modeless Dialog BoxThanks... That makes perfect sense :-)
-
Modeless Dialog BoxYour code works fine. It was exactly the same as mine only you used a pointer to a dialog and I used an instance directly. Doesn't really make much sense to me but as long as it works, I'm happy right now ;-) Thanks for your help.