Click here to Skip to main content
15,922,584 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: htmlhelp question Pin
Ravi Bhavnani25-Oct-02 9:32
professionalRavi Bhavnani25-Oct-02 9:32 
GeneralBad topic id? Pin
Ravi Bhavnani25-Oct-02 7:05
professionalRavi Bhavnani25-Oct-02 7:05 
GeneralRe: Bad topic id? Pin
ns25-Oct-02 7:26
ns25-Oct-02 7:26 
GeneralRe: Bad topic id? Pin
Ravi Bhavnani25-Oct-02 9:33
professionalRavi Bhavnani25-Oct-02 9:33 
GeneralWindow resizing using mouse Pin
Zakarya Shah25-Oct-02 5:58
sussZakarya Shah25-Oct-02 5:58 
GeneralRe: Window resizing using mouse Pin
Maximilien25-Oct-02 6:09
Maximilien25-Oct-02 6:09 
GeneralRe: Window resizing using mouse Pin
Paul M Watt25-Oct-02 8:09
mentorPaul M Watt25-Oct-02 8:09 
GeneralRe: Window resizing using mouse Pin
Paul M Watt25-Oct-02 8:06
mentorPaul M Watt25-Oct-02 8:06 
GeneralRe: Window resizing using mouse Pin
Maximilien25-Oct-02 8:21
Maximilien25-Oct-02 8:21 
GeneralRe: Window resizing using mouse Pin
Paul M Watt25-Oct-02 8:50
mentorPaul M Watt25-Oct-02 8:50 
GeneralRe: Window resizing using mouse Pin
Shog925-Oct-02 13:13
sitebuilderShog925-Oct-02 13:13 
GeneralRe: Window resizing using mouse Pin
6545645625-Oct-02 9:32
6545645625-Oct-02 9:32 
GeneralRe: Window resizing using mouse Pin
Paul M Watt25-Oct-02 10:11
mentorPaul M Watt25-Oct-02 10:11 
GeneralCListCtrl and SetTextColor Pin
Richard Hudson25-Oct-02 5:18
Richard Hudson25-Oct-02 5:18 
GeneralRe: CListCtrl and SetTextColor Pin
Maximilien25-Oct-02 5:32
Maximilien25-Oct-02 5:32 
GeneralRe: CListCtrl and SetTextColor Pin
Richard Hudson25-Oct-02 5:37
Richard Hudson25-Oct-02 5:37 
GeneralRe: CListCtrl and SetTextColor Pin
Michael Dunn25-Oct-02 20:34
sitebuilderMichael Dunn25-Oct-02 20:34 
QuestionPicture in a ListCtrl background ?? Pin
Cris25-Oct-02 5:04
Cris25-Oct-02 5:04 
AnswerRe: Picture in a ListCtrl background ?? Pin
Rob Caldecott25-Oct-02 6:21
Rob Caldecott25-Oct-02 6:21 
GeneralDecompression Pin
Jawache25-Oct-02 4:55
Jawache25-Oct-02 4:55 
GeneralRe: Decompression Pin
Ravi Bhavnani25-Oct-02 7:17
professionalRavi Bhavnani25-Oct-02 7:17 
GeneralArobat isn't closing Pin
pnpfriend25-Oct-02 4:10
pnpfriend25-Oct-02 4:10 
GeneralRe: Arobat isn't closing Pin
l a u r e n25-Oct-02 4:20
l a u r e n25-Oct-02 4:20 
GeneralRe: Arobat isn't closing Pin
pnpfriend25-Oct-02 4:29
pnpfriend25-Oct-02 4:29 
Here is an another way that I tried,
<br />
// fileName = the name of the file to print. (in this case, pdf file)<br />
// afile = a structure that contains about file informations such as, name, extention or type, size,....<br />
<br />
   SetShellExecuteInfoStructure(lpExecInfo,print,fileName);  //setting executeinfo structure<br />
   int success = ShellExecuteEx(&lpExecInfo);  // printing a file<br />
   //wait until a file is finished printing<br />
   if(lpExecInfo.hProcess !=NULL)<br />
   {<br />
      // it doesn't work.. may be I did it wrong. I don't really know how post the message though. <br />
      if(afile->type.CompareNoCase(".pdf")==0)<br />
      {<br />
         ::Sleep(25000);<br />
          PostMessage(reinterpret_cast<unsigned int>(lpExecInfo.hwnd),WM_CLOSE,NULL);<br />
      }<br />
      ::WaitForSingleObject(lpExecInfo.hProcess, INFINITE);<br />
      ::CloseHandle(lpExecInfo.hProcess);<br />
   }<br />


I tried it like that and it is not working. I dont know what else I need to do. Infact, I dont' really know how to post the message, I'm a beginner in programming..
Do I have to do something else after I post the meassage in this way???

what else do I have to do?
GeneralRe: Arobat isn't closing Pin
pba_25-Oct-02 11:40
pba_25-Oct-02 11:40 

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.