u can disable the usb devices, while changing the registry values
the follwing location have the usb device service set to 3.by changing that value 3 to 4. u can desiable the usb device.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\UsbStor and double click on "start" word it will show value 3 then u can edit.
this implementation can be done through regstry api which is provided by vc++
I add tab control on the window area(Not on DialogBox). Which function of CFrameWnd class needs to be override to get the which tab is clicked by user. I want to do all this code in CMainFrame class which is derived from CFrameWnd class. If anybody any solution then please forward it to me.
In my application im displaying bitmap in my view. But now i want animated giff file to display.I searched in net but i get solution to display only in dialog. i want to display in view.Pls help me out.
Take thsame steps you used to display the bitmap, but for a GIF you will need to include extra code to load the .gif file and render each frame to a DC. In the case of animated GIF's you may also want to use a timer.
Search on CP, there are numerous articles concerning loading and displaying GIF files.
I highly doubt the code you posted is the cause of your problem. Your code is trying to read a variable that has not been initialized 0xCCCCCCCC and because there is a 0xDC at the end of that hex, I am guessing that the instance of your class has not been initialized.
You can verify this by placing a breakpoint on the code and checking the value of the this pointer.
when i use this link to customize the title bar..........<b>http://www.codeproject.com/gdi/customcaption.asp</b>.Its demo was working fine but there is a bug,when first time click the minimize button it works fine but after that its not working and what we saw when i click the half left part of the maximize button,the window will minimize and when i click the right half part of the maximize button then the window will maximize.how to fix that bug.plz anybody fix the bug. i am a novice programmer.
Without looking at any code it's kinda hard to say. But to hazard a guess, I would say the NCHITTEST message is being handled incorrectly and that the rectangles of the buttons are improperly positioned.
what do you exactly want us to do here?
you have pasted your whole code here
no comments of the code?
no proper indentation?
and that too incomplete code.
where exactly your problem is?
please put some write up before your code
and keep the code as simple as possible.
and before posting, read the post "How to get an answer to your question" by chris maunder above your post.
Last Visit: 31-Dec-99 18:00 Last Update: 21-Apr-21 10:59