Click here to Skip to main content
15,918,007 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How do i convert CString from MFC application to String in Win32 application Pin
Bob Stanneveld27-Jul-05 21:06
Bob Stanneveld27-Jul-05 21:06 
GeneralRe: How do i convert CString from MFC application to String in Win32 application Pin
santoshskulkarni27-Jul-05 22:14
santoshskulkarni27-Jul-05 22:14 
GeneralRe: How do i convert CString from MFC application to String in Win32 application Pin
Bob Stanneveld27-Jul-05 22:55
Bob Stanneveld27-Jul-05 22:55 
GeneralRe: How do i convert CString from MFC application to String in Win32 application Pin
santoshskulkarni28-Jul-05 0:58
santoshskulkarni28-Jul-05 0:58 
GeneralRe: How do i convert CString from MFC application to String in Win32 application Pin
John R. Shaw28-Jul-05 5:30
John R. Shaw28-Jul-05 5:30 
GeneralCView and Dialog Pin
Mohammed F. Salem27-Jul-05 20:35
Mohammed F. Salem27-Jul-05 20:35 
GeneralRe: CView and Dialog Pin
Cool Ju27-Jul-05 21:18
Cool Ju27-Jul-05 21:18 
GeneralRe: CView and Dialog Pin
Mohammed F. Salem27-Jul-05 22:22
Mohammed F. Salem27-Jul-05 22:22 
U can send a user defined message to the treeview from dialog

this code i wrote at LeftView.cpp(TreeView):

#define WM_REFRESHTREE (WM_APP)<br />
<br />
BEGIN_MESSAGE_MAP(CLeftView, CTreeView)<br />
	//{{AFX_MSG_MAP(CLeftView)<br />
	//}}AFX_MSG_MAP<br />
	ON_MESSAGE(WM_REFRESHTREE,AddData) <br />
END_MESSAGE_MAP()<br />
<br />
// AddData used to insert database recordes and the treeview<br />
<br />
<br />
void CLeftView::AddData()<br />
{<br />
	if(db.IsOpen()==false)<br />
		db.Open();<br />
	db.MoveFirst();<br />
	GetTreeCtrl().DeleteAllItems();<br />
	while(db.IsEOF()==false)<br />
	{<br />
		GetTreeCtrl().InsertItem(db.m_name);<br />
		db.MoveNext();<br />
	}<br />
}


from MyDlg.cpp (Dialog):

void CMyDlg::OnButton1() <br />
{<br />
	CLeftView *obj;<br />
	obj->PostMessage(WM_REFRESHTREE);<br />
}


there is error appeared after writing code so it can't work true

so could i continue my work?

MFC programmer
GeneralRe: CView and Dialog Pin
Cool Ju27-Jul-05 23:09
Cool Ju27-Jul-05 23:09 
GeneralRe: CView and Dialog Pin
Mohammed F. Salem27-Jul-05 23:58
Mohammed F. Salem27-Jul-05 23:58 
GeneralRe: CView and Dialog Pin
Satishkumar.B28-Jul-05 1:58
Satishkumar.B28-Jul-05 1:58 
GeneralRe: CView and Dialog Pin
Mohammed F. Salem28-Jul-05 2:32
Mohammed F. Salem28-Jul-05 2:32 
GeneralRe: CView and Dialog Pin
David Crow28-Jul-05 5:34
David Crow28-Jul-05 5:34 
GeneralRe: CView and Dialog Pin
David Crow28-Jul-05 5:31
David Crow28-Jul-05 5:31 
GeneralRe: CView and Dialog Pin
David Crow28-Jul-05 5:37
David Crow28-Jul-05 5:37 
GeneralRe: CView and Dialog Pin
Mohammed F. Salem28-Jul-05 7:13
Mohammed F. Salem28-Jul-05 7:13 
GeneralRe: CView and Dialog Pin
David Crow28-Jul-05 7:23
David Crow28-Jul-05 7:23 
GeneralRe: CView and Dialog Pin
Mohammed F. Salem28-Jul-05 9:30
Mohammed F. Salem28-Jul-05 9:30 
GeneralRe: CView and Dialog Pin
David Crow28-Jul-05 9:41
David Crow28-Jul-05 9:41 
GeneralRe: CView and Dialog Pin
Mohammed F. Salem28-Jul-05 9:54
Mohammed F. Salem28-Jul-05 9:54 
GeneralRe: CView and Dialog Pin
David Crow28-Jul-05 10:08
David Crow28-Jul-05 10:08 
GeneralI solved it Pin
Mohammed F. Salem29-Jul-05 8:39
Mohammed F. Salem29-Jul-05 8:39 
GeneralAplication crashes Pin
Shailesh Halankar27-Jul-05 20:04
sussShailesh Halankar27-Jul-05 20:04 
GeneralRe: Aplication crashes Pin
Bob Stanneveld27-Jul-05 21:08
Bob Stanneveld27-Jul-05 21:08 
GeneralRe: Aplication crashes Pin
Blake Miller28-Jul-05 5:19
Blake Miller28-Jul-05 5:19 

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.