LRESULT ClassName::WindowProc(UINT message, WPARAM wParam, LPARAM lParam) { // TODO: Add your specialized code here and/or call the base class if(message == WM_DEVICECHANGE ) { } return CDialog::WindowProc(message, wParam, lParam); } Note : In the first line when i say ClassName it is your respective class name.
hariakuthota
Posts
-
Handling the device change functionality for HID Devices -
Handling the device change functionality for HID DevicesHi Alex, Did u try with the WindowProc(...) and if(message == WM_DEVICECHANGE ) inside it? This will be triggered if there is any change in the device connected to the system (Like plugging and Unplugging)
-
Combobox with Tooltip when mouse is moved over the items.Hi all, I am a newbie to the C# applications,I have a combobox in my application where i need to display the tooltip for the items inside it when mouse is moved over the items. I tried with the fucntions "m_cbCommPort_MouseHover" and "m_cbCommPort_DropDown", but both did not work fine.Please suggest me a good solution for this. Thanks in advance.
-
Enabling and Disabling Toolbar buttons....Hi all, I am new to C# development.I have application in which i need to enable / disbale too many toolbar buttons based on the tree node selection,due to this my screens is flickering to a greater extnet...please suggest me a good approach through which i can avoid the screen flickering. Thanks in advance.....
-
Enabling and Disadbling Toolbar Buttons.Hi all, I am new to C# development.I have application in which i need to enable / disbale too many toolbar buttons based on the tree node selection,due to this my screens is flickering to a greater extnet...please suggest me a good approach through which i can avoid the screen flickering. Thanks in advance.....
-
Toolbar buttons size getting changedHi, I am new to the Dot net C# applications.In my application I have created a toolbar with fixed size and based on the events i need to change the visibility to true or false.On button click when i change the visibility of few of the toolbar buttons the size of the total toolbar buttons is getting changed. Can someone tell me the right approach to avoid this kind of shrinking in the size of the toolbar buttons. I used the following code for changing the visibility of the buttons in the toolbar: toolBar1->Buttons->Item[3]->Visible= false; Thanks in advance...
-
how can i see the fucntions available in the dll file.Hi all, I have a dll file which i want to use in my application before that i want to check the available functions in that so that i can decide whether to use it or not. Please suggest me a way through which I can see the fucntions before usign it. Thanks in advance....
-
Reverse engineering the vc++ projectHi all, I am workign on vc++. I got a project which is under maintanence now, the project is huge but I am new to this project.Can anybody suggest me a free /trail reverse engineering tool that can give me the design of the project so that i can have a better control on the project. Thanks in advance...
-
Code for extracting the capabilities supported by the TWAIN data source.Hi all, I am working on Twain related project and I want to extract the capabilities supported by the Source, I have gone through the Twain Spec and found that it can be done using the capability "CAP_SUPPORTEDCAPS". Can I have a ready code available for this extraction if so please share it. Thanks in Advance..
-
How to retrieve present system supported baudrates and parity.Hi all, In my VC++ MFC application I want to show the user present system supported Baud rates and Parity in their respective combo boxes. Can anybody suggest me a right approach for doing this? Thanks in advance...
-
Handling the device change functionality for HID DevicesHi all, In my application I want to handle the insert(plug in) and removal(plug out) of the devices so that i have to re enumerate and show the user present devices connected to the system.But my application is limited to re enumeration of HID devices only, so i want to handle the device change only for HID devices. I handled the WindProc() in which I used if(message == WM_DEVICECHANGE) but I am getting in to this loop for every device change but how can I check whether device change is for HID devices or not. Please suggest a right approach for this. Thanks in advance.
-
Vista registry virtualisation issue when running my applicationThanks for the info.
-
Vista registry virtualisation issue when running my applicationThats looks fine. But how can I do that programtically coz when I deliver my product to the customer it has to be done implicitly, we can ask the user/customer to run in using the context menu(using right click)... Do we have any other approach of doing this programatically?
-
Vista registry virtualisation issue when running my applicationHi all, In my vc++ application I am performing some operations using the Registry functionality but in Vista , registry virtualisation is coming in to picture and is creating the keys in virtual store instead of the path which i gave.I have gone through some of the material on this topic and found that if the user is not an admin then this will happen.But for my laptop I am holding the admin previlages then how come I am not able to create the keys in the correct location. Thanks in Advance.....
-
Name of the HID device connected to the systemHi all, in my applcation I want to retrieve the name of the HID device connected to my machine,How can i do that? Please suggest me a good approach in doing this... Thanks in advance.
-
Enable scrollbar for editbox only if thel ength exceeds [modified]Hi, I have an application in which i have a editbox and data for it will be populated dynamically ,i have verticall scroll applied for it,now my problem is i want that scroll to be visible only if the length of the data coming into the editbox exceeds the length of the editbox. Can anybody suggest a right approach for this? Thanks in advance.
modified on Wednesday, December 10, 2008 3:28 AM
-
Using c# com dll in c++ applicationHi all, in my simple C++ application I want to use a c# com dll how can i do that. Can anybody suggest me the right approach for doing that?? Thanks in advance...
-
Using WMI for Using the POSDevice classHi all, I am new to the POS For Net applications.In my application i want to add the logical names for the devices using the POSDevice class methods "Addname" but i am not able to use these fucntions with POSDevice object. I have googled and found out that it shud be doen using WMI concepts can anyone suggest me how to do that????? And is the WEPOS OS installation mandatory for using the WMI conecpts????????? Thanks in advance...
-
Access the controls of other dialog boxes.Hi I am new to the MFC applications in vc++. In my application I want to access the contents of second dialog box from the first,I created the object for the second dialog box and tried to access the values of the controls without saying domodal() but it is giving an error. How can i handle this problem???????? Thanks in advance....
-
Reading a .LIS fileHi all,I am new to Dot Net applications. In my application i want to read the .Lis file, can anyone suggest me the right approach for doing this? Thanks in advance...