>>It may be a silly question, but I badly need a solution!
Well surely it is not a silly question.I have gone through the same stage.
For enabling/disabling Toolbar Buttons at Runtime use SendMessage() like this:
FOR ENABLING BUTTON:
GetToolBarCtrl().SendMessage(TB_ENABLEBUTTON,<ButtonID>...
Also if u want to to set the color to blue and only one row at a time u can use the function SetHotItem() belonging to the class CListCtrl.
Pass the index no of the row whose color u want to change.
Hope this helps
>>How can I change the cursor to make it look like an >>hourglass?
When ever some long procedure is to be performed we generally prefer showing the hourglass cursor.
Doing that is very easy. Just create an object of MFC class
CWaitCursor.
ex:
void someclass::somefunction()
{
CWaitCursor...
1) Creating a string like this: " Hello "World" "
To achieve this do this:
CString Test = " Hello \"World\" ";
ur second question is not clear.
Hope this helps
mathu
This sounds to be a very unique problem.There could no problem with the line
m_pMainWnd=&Dlg;
Debug carefully.
Better option would be to make a new dlg based app.
Something is wrong somewhere?
Try making it again.
As far as deleted DialogBoxes is concerned,modal dialog boxes r deleted themselves when closed.
Modeless Dialog Boxes needs to be explicitly destroyed.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.