Click here to Skip to main content
15,917,645 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to invoke exe from console application... Pin
hrishiS8-Mar-09 20:09
hrishiS8-Mar-09 20:09 
AnswerRe: How to invoke exe from console application... Pin
Hamid_RT8-Mar-09 19:38
Hamid_RT8-Mar-09 19:38 
GeneralRe: How to invoke exe from console application... Pin
Nishad S8-Mar-09 20:04
Nishad S8-Mar-09 20:04 
QuestionCView Create Pin
prithaa8-Mar-09 17:17
prithaa8-Mar-09 17:17 
AnswerRe: CView Create Pin
_AnsHUMAN_ 8-Mar-09 19:07
_AnsHUMAN_ 8-Mar-09 19:07 
GeneralRe: CView Create Pin
prithaa8-Mar-09 19:23
prithaa8-Mar-09 19:23 
GeneralRe: CView Create Pin
_AnsHUMAN_ 8-Mar-09 19:42
_AnsHUMAN_ 8-Mar-09 19:42 
QuestionI have Question about OnDropFiles Pin
SongBI8-Mar-09 16:45
SongBI8-Mar-09 16:45 
I Created a Window.

and I created WM_DROPFILES in callback procedure in the window.
It brings Icon Function through the event.

<br />
<br />
void OnDropFiles(HDROP hDropInfo)<br />
{<br />
	 HICON hIcon;<br />
	 char filename[MAX_PATH];<br />
	 UINT Filenum = DragQueryFile(hDropInfo,0xFFFFFFFF,NULL,0);<br />
	 for(UINT y = 0; y<Filenum;y++)<br />
	 {<br />
		 DragQueryFile(hDropInfo,y,filename,MAX_PATH);		 <br />
		<br />
		int count = (int)ExtractIconExA(filename,-1,NULL,NULL,1);<br />
<br />
		 HDC hdc = GetDC(main_hWnd);<br />
		 <br />
		if (count >= 1)<br />
		{<br />
			 ExtractIconExA(filename,0,&hIcon,NULL,1);<br />
			 DrawIcon(hdc,location,10,hIcon);<br />
			 DestroyIcon(hIcon);<br />
			 location += 35;<br />
		 }<br />
		 ReleaseDC(main_hWnd,hdc);<br />
		 DragFinish(hDropInfo);			 <br />
	 }<br />
}<br />
<br />


This Function is only for exe or ico files to get some icons.

By the way, I would like to bring all of the files of Icons, How should I do?

And, at this part of DragQueryFile(hDropInfo,y,filename,MAX_PATH),

It counts "y", but that file name wasn't changed.
QuestionLink between the size of an object (as ressource) and its CRect Pin
Member 12423738-Mar-09 8:49
Member 12423738-Mar-09 8:49 
AnswerRe: Link between the size of an object (as ressource) and its CRect Pin
Code-o-mat8-Mar-09 11:44
Code-o-mat8-Mar-09 11:44 
GeneralRe: Link between the size of an object (as ressource) and its CRect Pin
Member 12423738-Mar-09 13:43
Member 12423738-Mar-09 13:43 
QuestionUrgent help needed in Ec++... :-( Pin
gauravxxx8-Mar-09 7:09
gauravxxx8-Mar-09 7:09 
AnswerRe: Urgent help needed in Ec++... :-( Pin
Iain Clarke, Warrior Programmer10-Mar-09 3:45
Iain Clarke, Warrior Programmer10-Mar-09 3:45 
GeneralRe: Urgent help needed in Ec++... :-( Pin
gauravxxx10-Mar-09 4:28
gauravxxx10-Mar-09 4:28 
QuestionDynamic sub-menu item to create a pop-up menu Pin
z5452844478-Mar-09 1:39
z5452844478-Mar-09 1:39 
AnswerRe: Dynamic sub-menu item to create a pop-up menu Pin
«_Superman_»8-Mar-09 2:51
professional«_Superman_»8-Mar-09 2:51 
AnswerRe: Dynamic sub-menu item to create a pop-up menu Pin
Hamid_RT8-Mar-09 3:52
Hamid_RT8-Mar-09 3:52 
QuestionCDC TextOut statements Pin
prithaa8-Mar-09 0:23
prithaa8-Mar-09 0:23 
AnswerRe: CDC TextOut statements Pin
Cedric Moonen8-Mar-09 0:38
Cedric Moonen8-Mar-09 0:38 
GeneralRe: CDC TextOut statements Pin
prithaa8-Mar-09 0:46
prithaa8-Mar-09 0:46 
GeneralRe: CDC TextOut statements Pin
Cedric Moonen8-Mar-09 1:19
Cedric Moonen8-Mar-09 1:19 
GeneralRe: CDC TextOut statements Pin
prithaa8-Mar-09 1:29
prithaa8-Mar-09 1:29 
GeneralRe: CDC TextOut statements Pin
Eytukan8-Mar-09 7:47
Eytukan8-Mar-09 7:47 
GeneralRe: CDC TextOut statements Pin
prithaa8-Mar-09 7:51
prithaa8-Mar-09 7:51 
QuestionHow to use HTTP in native C++ ? Pin
Yanshof7-Mar-09 21:12
Yanshof7-Mar-09 21:12 

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.