Click here to Skip to main content
14,546,581 members

C / C++ / MFC

 
AnswerRe: Windows message for changing color scheme Pin
_Flaviu5-Oct-15 3:07
Member_Flaviu5-Oct-15 3:07 
QuestionRe: Windows message for changing color scheme Pin
Richard MacCutchan5-Oct-15 3:47
mveRichard MacCutchan5-Oct-15 3:47 
AnswerRe: Windows message for changing color scheme Pin
_Flaviu5-Oct-15 20:18
Member_Flaviu5-Oct-15 20:18 
AnswerRe: Windows message for changing color scheme Pin
_Flaviu7-Oct-15 0:46
Member_Flaviu7-Oct-15 0:46 
Questionuploadig adobe reader file in local host in c language Pin
sunycity4-Oct-15 22:31
Membersunycity4-Oct-15 22:31 
AnswerRe: uploadig adobe reader file in local host in c language Pin
Jochen Arndt4-Oct-15 22:54
professionalJochen Arndt4-Oct-15 22:54 
QuestionCFileDialog OnTypeChange issue Pin
_Flaviu1-Oct-15 20:59
Member_Flaviu1-Oct-15 20:59 
QuestionRe: CFileDialog OnTypeChange issue Pin
_Flaviu2-Oct-15 3:00
Member_Flaviu2-Oct-15 3:00 
Maybe if I could get a pointer to CComboBox from CFileDialog, I can find more about this problem ... but I can not ... I tried this:
void CFileDialogExt::OnTypeChange()
{
	// TODO: Add your specialized code here and/or call the base class

	CString sTemp;
	CComboBox* pCombo = (CComboBox*)GetDlgItem(cmb1);
	if(NULL != pCombo->GetSafeHwnd())
	{
		int nIndex = pCombo->GetCurSel();
		if(CB_ERR != nIndex)
			pCombo->GetLBText(nIndex, sTemp);
	}
TRACE(">>>%s\n", sTemp);
	switch(GetOFN().nFilterIndex)
	{
	case 1:
		SetDefExt(_T("bmp"));
		break;
	case 2:
		SetDefExt(_T("gif"));
		break;
	case 3:
		SetDefExt(_T("jpg"));
		break;
	case 4:
		SetDefExt(_T("png"));
		break;
	case 5:
		SetDefExt(_T("tiff"));
		break;
	case 6:
		SetDefExt(_T("dcm"));
		break;
	}

	CFileDialog::OnTypeChange();
}

but pCombo seem to be null ...
AnswerRe: CFileDialog OnTypeChange issue Pin
Maximilien2-Oct-15 4:06
MemberMaximilien2-Oct-15 4:06 
GeneralRe: CFileDialog OnTypeChange issue Pin
_Flaviu4-Oct-15 21:29
Member_Flaviu4-Oct-15 21:29 
QuestionA c program to project expected number of rabbits on a farm Pin
Arnold Mukisa29-Sep-15 8:27
MemberArnold Mukisa29-Sep-15 8:27 
AnswerRe: A c program to project expected number of rabbits on a farm Pin
Arnold Mukisa29-Sep-15 8:30
MemberArnold Mukisa29-Sep-15 8:30 
SuggestionRe: A c program to project expected number of rabbits on a farm Pin
David Crow29-Sep-15 15:42
MemberDavid Crow29-Sep-15 15:42 
GeneralRe: A c program to project expected number of rabbits on a farm Pin
David Crow29-Sep-15 15:34
MemberDavid Crow29-Sep-15 15:34 
QuestionRe: A c program to project expected number of rabbits on a farm Pin
Paul Conrad1-Oct-15 7:33
subeditorPaul Conrad1-Oct-15 7:33 
GeneralRe: A c program to project expected number of rabbits on a farm Pin
David Crow1-Oct-15 10:19
MemberDavid Crow1-Oct-15 10:19 
Question0 bytes CImage saved Pin
_Flaviu28-Sep-15 23:47
Member_Flaviu28-Sep-15 23:47 
QuestionRe: 0 bytes CImage saved Pin
CPallini29-Sep-15 0:02
mveCPallini29-Sep-15 0:02 
AnswerRe: 0 bytes CImage saved Pin
_Flaviu29-Sep-15 0:06
Member_Flaviu29-Sep-15 0:06 
AnswerRe: 0 bytes CImage saved Pin
_Flaviu29-Sep-15 0:33
Member_Flaviu29-Sep-15 0:33 
SuggestionRe: 0 bytes CImage saved Pin
Jochen Arndt29-Sep-15 0:36
professionalJochen Arndt29-Sep-15 0:36 
GeneralRe: 0 bytes CImage saved Pin
_Flaviu29-Sep-15 0:57
Member_Flaviu29-Sep-15 0:57 
GeneralRe: 0 bytes CImage saved Pin
Jochen Arndt29-Sep-15 0:59
professionalJochen Arndt29-Sep-15 0:59 
GeneralRe: 0 bytes CImage saved Pin
_Flaviu29-Sep-15 1:00
Member_Flaviu29-Sep-15 1:00 
QuestionHow to drag a node from treeview to listbox in MFC. What is the event ? Pin
Member 1199023524-Sep-15 16:50
MemberMember 1199023524-Sep-15 16:50 

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.