Click here to Skip to main content
15,913,944 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to Draw text in CEditView? Pin
Alexandru Savescu6-Aug-03 23:44
Alexandru Savescu6-Aug-03 23:44 
AnswerRe: How to Draw text in CEditView? Pin
Ryan Binns6-Aug-03 23:57
Ryan Binns6-Aug-03 23:57 
GeneralRe: How to Draw text in CEditView? Pin
Habbit7-Aug-03 15:53
Habbit7-Aug-03 15:53 
GeneralDIrectoy selection, and creating Pin
BoudewijnEctor6-Aug-03 23:19
BoudewijnEctor6-Aug-03 23:19 
GeneralRe: DIrectoy selection, and creating Pin
jhwurmbach6-Aug-03 23:55
jhwurmbach6-Aug-03 23:55 
GeneralRe: DIrectoy selection, and creating Pin
BoudewijnEctor6-Aug-03 23:59
BoudewijnEctor6-Aug-03 23:59 
GeneralRe: DIrectoy selection, and creating Pin
jhwurmbach7-Aug-03 0:02
jhwurmbach7-Aug-03 0:02 
GeneralRe: DIrectoy selection, and creating Pin
BoudewijnEctor7-Aug-03 0:14
BoudewijnEctor7-Aug-03 0:14 
Here's my code, it's very standard (got parts of it from people at CPSmile | :) )

BROWSEINFO* b=new BROWSEINFO();    <br />
	LPTSTR buf=new TCHAR[MAX_PATH];    <br />
	  <br />
	int image=-1;    <br />
	b->hwndOwner=this->m_hWnd;    <br />
	b->iImage=image;     <br />
	b->lpszTitle="Please select a directory for your input:";   <br />
	b->pidlRoot=NULL;    <br />
	b->pszDisplayName=buf;     <br />
	b->ulFlags=BIF_BROWSEINCLUDEFILES;    <br />
	<br />
	LPITEMIDLIST x=SHBrowseForFolder(b);    <br />
	if(x==NULL)<br />
	{<br />
		return;<br />
	}<br />
<br />
<br />
	LPTSTR buf2=new TCHAR[MAX_PATH];    <br />
	<br />
	<br />
	bool gelukt=SHGetPathFromIDList(x,buf2);<br />
	<br />
<br />
	CString pad=buf2;<br />
<br />
	if(!gelukt)<br />
	{<br />
		error_scherm e;<br />
		e.set_text("It seems that the directory you've selected is corrupt, if this problem persists please contact the developer.");<br />
		e.DoModal();<br />
		return;<br />
	}<br />
<br />
	delete [] buf;  // Delete the memory when you're finished with it.		<br />
	delete [] buf2;<br />

GeneralRe: DIrectoy selection, and creating Pin
jhwurmbach7-Aug-03 0:26
jhwurmbach7-Aug-03 0:26 
GeneralRe: DIrectoy selection, and creating Pin
BoudewijnEctor7-Aug-03 23:33
BoudewijnEctor7-Aug-03 23:33 
GeneralRe: DIrectoy selection, and creating Pin
jhwurmbach7-Aug-03 23:45
jhwurmbach7-Aug-03 23:45 
Questionudp & time out?? Pin
ashxly6-Aug-03 22:56
ashxly6-Aug-03 22:56 
AnswerRe: udp &amp; overtime?? Pin
Vitali Halershtein6-Aug-03 23:41
Vitali Halershtein6-Aug-03 23:41 
GeneralRe: udp &amp; overtime?? Pin
ashxly6-Aug-03 23:44
ashxly6-Aug-03 23:44 
GeneralRe: udp &amp; overtime?? Pin
Vitali Halershtein7-Aug-03 0:08
Vitali Halershtein7-Aug-03 0:08 
GeneralRe: udp &amp; overtime?? Pin
ashxly7-Aug-03 0:18
ashxly7-Aug-03 0:18 
QuestionWebbrowser?? Pin
xxhimanshu6-Aug-03 22:28
xxhimanshu6-Aug-03 22:28 
GeneralCTreeCtrl.SetItemData(...) Pin
Ph@ntom6-Aug-03 22:08
Ph@ntom6-Aug-03 22:08 
GeneralRe: CTreeCtrl.SetItemData(...) Pin
Vitali Halershtein6-Aug-03 22:22
Vitali Halershtein6-Aug-03 22:22 
GeneralRe: CTreeCtrl.SetItemData(...) Pin
Anthony_Yio8-Aug-03 0:00
Anthony_Yio8-Aug-03 0:00 
Generalinclude error Pin
suninwater6-Aug-03 21:55
suninwater6-Aug-03 21:55 
GeneralRe: include error Pin
Vitali Halershtein6-Aug-03 22:03
Vitali Halershtein6-Aug-03 22:03 
GeneralRe: include error Pin
suninwater6-Aug-03 22:26
suninwater6-Aug-03 22:26 
GeneralRe: include error Pin
Vitali Halershtein6-Aug-03 22:52
Vitali Halershtein6-Aug-03 22:52 
GeneralRe: include error Pin
suninwater6-Aug-03 22:55
suninwater6-Aug-03 22:55 

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.