Click here to Skip to main content
15,908,843 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: _Connection as parameter in IDL file Pin
MrKBA27-Oct-09 9:31
MrKBA27-Oct-09 9:31 
GeneralRe: _Connection as parameter in IDL file Pin
Stuart Dootson27-Oct-09 9:37
professionalStuart Dootson27-Oct-09 9:37 
GeneralRe: _Connection as parameter in IDL file Pin
MrKBA27-Oct-09 9:44
MrKBA27-Oct-09 9:44 
GeneralRe: _Connection as parameter in IDL file Pin
MrKBA27-Oct-09 10:45
MrKBA27-Oct-09 10:45 
GeneralRe: _Connection as parameter in IDL file Pin
Stuart Dootson27-Oct-09 13:06
professionalStuart Dootson27-Oct-09 13:06 
QuestionMy texture Problem Pin
Archy_Yu25-Oct-09 21:43
Archy_Yu25-Oct-09 21:43 
AnswerRe: My texture Problem Pin
Cedric Moonen25-Oct-09 22:01
Cedric Moonen25-Oct-09 22:01 
GeneralRe: My texture Problem Pin
Archy_Yu26-Oct-09 4:43
Archy_Yu26-Oct-09 4:43 
GeneralRe: My texture Problem Pin
Cedric Moonen26-Oct-09 4:59
Cedric Moonen26-Oct-09 4:59 
QuestionHow can i Get viewtype from Dialog? Pin
002comp25-Oct-09 21:29
002comp25-Oct-09 21:29 
AnswerRe: How can i Get viewtype from Dialog? Pin
Richard MacCutchan25-Oct-09 22:31
mveRichard MacCutchan25-Oct-09 22:31 
GeneralRe: How can i Get viewtype from Dialog? Pin
002comp25-Oct-09 22:35
002comp25-Oct-09 22:35 
GeneralRe: How can i Get viewtype from Dialog? Pin
Naveen25-Oct-09 23:34
Naveen25-Oct-09 23:34 
GeneralRe: How can i Get viewtype from Dialog? Pin
David Crow26-Oct-09 3:43
David Crow26-Oct-09 3:43 
GeneralRe: How can i Get viewtype from Dialog? Pin
002comp26-Oct-09 19:56
002comp26-Oct-09 19:56 
AnswerRe: How can i Get viewtype from Dialog? Pin
David Crow27-Oct-09 3:05
David Crow27-Oct-09 3:05 
QuestionListBox Pin
MsmVc25-Oct-09 20:57
MsmVc25-Oct-09 20:57 
Hi All

I am using a ListBox and add Variable derive of CCheckListBox.i use a Check box that is use to select and UnSelct all items of ListBox.i handle it over ON_LBN_SELCHANGE of ListBox and Click event of Check box.
Selection and UnSelection from Checkbox working fine.
But problem occur when i use it by List box.i want to do when the all items of list box is checked then Select all Check box automatically Checked or vice-versa.
Code is here
CButton m_check;//Chek box
CCeckListBox m_list1;
void CTestDlg::OnBnClickedCheckSelAll()
{
   const int nSize = m_list1.GetCount();
   if(m_Check.GetCheck())
   for(int nItem = 0; nItem < nSize; nItem++)
   {
		 m_list1.SetCheck(nItem,1);
		 m_list1.SetSel(nItem,1);
    }
	else
	for(int nItem = 0; nItem < nSize; nItem++)
   {
		 m_list1.SetCheck(nItem,0);
		  m_list1.SetSel(nItem,0);
   }

}

void CTestDlg::OnLbnSelchangeListColumns()
{
        int x=m_list1.GetSelCount();
	int y=m_list1.GetCount();
	if(x==y)
	{
		m_Check.SetCheck(1);
	}
	else
	{
		
		m_Check.SetCheck(0);
	}
}

Properties setting of List Box Has String is TRUE,Owner Draw is FIXED,Selection is Multiple.
Problem is that when first time click on listbox then OnLbnSelchangeListColumns() is call and when i click on listbox on second time then OnLbnSelchangeListColumns is not call.
Plz help me
QuestionHow to print whole dialog box in vc++,mfc Pin
prerananit25-Oct-09 20:54
prerananit25-Oct-09 20:54 
AnswerRe: How to print whole dialog box in vc++,mfc Pin
Code-o-mat25-Oct-09 22:27
Code-o-mat25-Oct-09 22:27 
Question[Message Deleted] Pin
eswar pothula25-Oct-09 20:03
eswar pothula25-Oct-09 20:03 
AnswerRe: how to convert tiff to pdf and pdf to tiff Pin
Game-point25-Oct-09 20:37
Game-point25-Oct-09 20:37 
GeneralRe: how to convert tiff to pdf and pdf to tiff Pin
eswar pothula25-Oct-09 21:35
eswar pothula25-Oct-09 21:35 
AnswerRe: how to convert tiff to pdf and pdf to tiff Pin
Game-point25-Oct-09 20:49
Game-point25-Oct-09 20:49 
GeneralRe: how to convert tiff to pdf and pdf to tiff Pin
eswar pothula25-Oct-09 23:57
eswar pothula25-Oct-09 23:57 
QuestionList Control Selection Pin
hellogany25-Oct-09 19:37
hellogany25-Oct-09 19:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.