Hi, Still i am getting the same error. :(
Deepu Antony
Posts
-
Error while adding ON_BN_CLICKED event. -
Error while adding ON_BN_CLICKED event.Hi I have a class MyClass, which is derived from CWnd and COleDropTarget. class MyClass:public CWnd, public COleDropTarget { }; I am having a button in my class. While adding ON_BN_CLICKED(BUTTON_ID, OnClick) event in the message map entry, i am getting the following compiler error, Error C2594: 'Static cast': ambigious convertion form 'void (__thiscall MyClass::*) (void)' to AFX_PMSG. can anybody tell me what's the issue. Thanks
-
Adding a new item to Open With sub menu in context menu of explorerThank you..
-
Adding a new item to Open With sub menu in context menu of explorerHi everybody I need to add a new item in the open with context menu of explorer. I added a new item in the main context menu using shell extensions samples. But can anybody tell me how to get the handle of Open With context menu so that i can add my items to it. Thanks in advance. Regards Deepu
modified on Thursday, February 11, 2010 8:04 AM
-
Disabling Restore button of a windowThank you very much David for showing intrest. I tried to do it in MDI child frame window PreCreateWindow by modifying the CREATESTRUCT it was not working. Also i pasted the code which you have posted in View class OnCreate function . both was showing the same result. Initailly the window will be displayed as maximized and restore dowm button will be enabled. But once the user press the restore down button, the window will be resized and then the Maximize button will be disabled. After that the user cannot click on the maximize button. But what i want to do it is to disable\remove the restore down button in the begining itself so that the user may not be able to resize the window. The reason is that i am displaying a graph which should be always displayed in a full window. Is there any solution.
-
Disabling Restore button of a windowThanks for the reply. I have tried it.And aslo i have tried in childframe precreate function in CREATRSTRUCT structure . CREATRSTRUCT cs; cs ~=WS_MAXIMIZEBOX which disables the maximize box. But both the ways gives me the same result.That intially window is maximised and the user can press the restore button. Once the restore button is pressed, the maximize button is disabled.But this is not the actual requirment that the user should not be able to pres the restore button in initial case also. Is there is any method so that initially also restore button should be disabled
-
Disabling Restore button of a windowI have dynamically created the window.Now I want to disable/remove the Restore button ie (Minimize,Maximize ,Close) of the window title bar. I wish to disable/remove the restore button so that the user cannot resize the window. The window should be in maximized state intially and if user want,he can minimize it ,but window should not be resized. please help me
-
Disabling Restore button of a windowHi I am dyanamically creating a class inherited from CScrollView. The restore button of this view should be disabled so that the user may not be able to click on it. Please help me. Thanks and regards Deepu.
-
Bulk insertion into SQL Server 2005 using variables.Hi all I am inserting files into SQL server using bulk insertion. Can anybody tell me how to do it using variables. I will store the data in a structure and how to insert this structure to the SQL server. Inserting using files is taking time. Please help. Regards Deepu
-
Problem while horizontal scrolingHi Stuart Thanks for the repling me. The nPos parameter of the OnHscrol can handle only 16 bit data. So when nPos is greater than 32677 it resets to 0.Thats why it was going to the initial posistion. Using GetScrollInfo function it can be made into 32 bit data.
-
Problem while horizontal scrolingI have commented the code inside the OnHScroll.But still it is showing the same result.
-
Problem while horizontal scrolingHi all I am facing a problem while horizontal scrolling. My class is derived from CScrollView and i am displaying a graph in that class. While i am dragging the scrollbar and when it reached in the middle, it is returning to the initial position.But there is no problem with scroll to absolute position. Please help me Thanks and regards Deepu
-
How to change the background color of an EditBoxThank you very much.
-
How to change the background color of an EditBoxHi all Can anybody tell me how to change the back ground color and text color dynamically in an edit box. Thanks and regards Deepu.
-
Using VS 2008Hi Stuart Thanks for helping me.I didnt understand much about manifest files. But when i deleted Manifest option in rc file it worked. Regards Deepu.
-
Using VS 2008No.I am searching for how to remove the manifest information from rc file.
-
Using VS 2008Thank you.
-
Using VS 2008Hi all, I am using VS 2008 for the first time.I was working with VC++6.0. And i am trying to compile the project which was done with VC++6.0. When i am building the project i am getting the error like this CVTRES : fatal error CVT1100: duplicate resource. type:MANIFEST, name:1, language:0x0409 LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt I have googled out and found that if Generate manifest option in Project+properties+Linker is set to off this linker error will not come. But i am not able to run the exe which is generated. Please help me. Regards Deepu.
-
How to delete an exe that runs for ever.Thanks for the reply.
-
How to delete an exe that runs for ever.That is a good idea. Thank you.