I one of my sample applcaiton,I hav changed the combobox in to Listbox,
After that i got in piece of code.
CAlarmCombo *pSysBox = (CAlarmCombo *)((CMainFrame *)AfxGetMainWnd())->m_SysWnd.GetDlgItem(IDC_SYSALARM);
if( pSysBox->GetCount() < 5 ) pSysBox->AddString((LPCTSTR)RGB(255,0,0));
The code is working fine with CComboBox.
The error comes in that bolded line as some USER32.dll unhandled exception.
In Visual C++ 6.0 I have two ActiveX control project. One ActiveX control is dependent on another ActiveX control. For that First Project is compiled succesfully and then in second project we used Project->Add To Project->Components and Controls-> then point to compiled first project ActiveX control.
Then It will insert .h and .cpp files to Second Project.
The same how to do in Visual Studio 2008. Please help regarding this
Iam displaying child views as seperate window.When i maximize the view,it maximized up to top mainframe. But i want this: when i press the maximize button,the view should maximized up to the toolbar.Like the childwindow minimize,maximize button should appear below the toolbar.
How can i do this?Pls help me.
iam a beginner in VC++
previously i have posted query regarding saving editbox contents and opening a text file...
it worked perfectly .. thanks for all support.. i have experienced a very fast response from this forum..
I have 4 editboxes.. i have added Cfontdialog to my application..
once i click ok it changes the font of the first editbox alone.. how can i change the font of other 3 editboxes indivitually... for that as per my understaning, i should find, in which editbox the cursor is... how can i achieve that...below code is for one edit box..
CFont *font = new CFont();
if(FontDlg.DoModal() == IDOK)
plz help me.. thanks in advance
thanks for the reply...
im facing a problem now..
the GetCaretPos() is always getting position of cursor in first edit box even if i keep the cursor in the second or third
Also GetCntrlID is returning me an integer value..
can u help me wid this...