Click here to Skip to main content
15,888,454 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: reading icons Pin
raysuman7-Jan-03 0:48
raysuman7-Jan-03 0:48 
QuestionWhat's 0xFEEEFEEE ? Pin
peterchen6-Jan-03 0:03
peterchen6-Jan-03 0:03 
AnswerRe: What's 0xFEEEFEEE ? Pin
-=jarl=-6-Jan-03 3:40
-=jarl=-6-Jan-03 3:40 
GeneralDrawing an Integer !! Pin
Ehsan Baghaki5-Jan-03 23:36
Ehsan Baghaki5-Jan-03 23:36 
GeneralRe: Drawing an Integer !! Pin
roel_5-Jan-03 23:53
roel_5-Jan-03 23:53 
GeneralTypo Pin
Ted Ferenc6-Jan-03 4:41
Ted Ferenc6-Jan-03 4:41 
GeneralRe: Typo Pin
roel_6-Jan-03 4:56
roel_6-Jan-03 4:56 
GeneralRe: Drawing an Integer !! Pin
eXplodus6-Jan-03 0:18
eXplodus6-Jan-03 0:18 
GeneralHiding from taskbar Pin
Mazdak5-Jan-03 23:32
Mazdak5-Jan-03 23:32 
GeneralRe: Hiding from taskbar Pin
Kannan Kalyanaraman6-Jan-03 0:31
Kannan Kalyanaraman6-Jan-03 0:31 
GeneralRe: Hiding from taskbar Pin
Mazdak6-Jan-03 1:49
Mazdak6-Jan-03 1:49 
GeneralObtaining process handle Pin
Shah Shehpori5-Jan-03 23:27
sussShah Shehpori5-Jan-03 23:27 
GeneralRe: Obtaining process handle Pin
Kannan Kalyanaraman6-Jan-03 0:43
Kannan Kalyanaraman6-Jan-03 0:43 
GeneralMultiple file types Pin
S O S5-Jan-03 23:08
S O S5-Jan-03 23:08 
GeneralRe: Multiple file types Pin
Iain Clarke, Warrior Programmer5-Jan-03 23:32
Iain Clarke, Warrior Programmer5-Jan-03 23:32 
GeneralRe: Multiple file types Pin
S O S6-Jan-03 1:29
S O S6-Jan-03 1:29 
GeneralRe: Multiple file types Pin
uandrej6-Jan-03 3:31
uandrej6-Jan-03 3:31 
GeneralRe: Multiple file types Pin
Iain Clarke, Warrior Programmer6-Jan-03 4:58
Iain Clarke, Warrior Programmer6-Jan-03 4:58 
I may have been misleading you... I misremembered how I did the project I thought I had this
feature in. The string I meant was as follows:

// Normal
JigSaw\n\nJigSaw\nJigsaw Image (*.jig)\n.jig\nJigSaw.Document\nJigSaw Document

// Edited...
JigSaw\n\nJigSaw\nJigsaw Image (*.jig;*.jpg)\n.jig;.jpg\nJigSaw.Document\nJigSaw Document
OR
JigSaw\n\nJigSaw\nJigsaw Image (*.jig;*.jpg)\n.jig;*.jpg\nJigSaw.Document\nJigSaw Document

If those two possibilities don't work, then you'll have to use the OpenFileName function
yourself by over-riding the CWinApp::OnFileOpen () function.

Loosely, and with a lot or error correction cut out:

void CZeusApp::OnFileOpen()
{
    CFileDialog fDlg (TRUE, "JIG", NULL, 0, "Jigsaw Image (*.jig;*.jpg)|mdf;*.dat|All files|*.*||", AfxGetMainWnd ())

    if (fDlg.DoModal () != IDOK)
        return;

    OpenDocumentFile (fDlg.GetPathName ());
}


This wouldn't handle multiple files etc, but it will give you a start.

Iain.
Generaltcp api calls Pin
Prince Manatt5-Jan-03 22:57
Prince Manatt5-Jan-03 22:57 
GeneralRe: tcp api calls Pin
viliam6-Jan-03 3:09
viliam6-Jan-03 3:09 
GeneralCustom resources Pin
S O S5-Jan-03 22:43
S O S5-Jan-03 22:43 
GeneralWinsock related Pin
Kamran Jamal5-Jan-03 22:40
sussKamran Jamal5-Jan-03 22:40 
GeneralRe: Winsock related Pin
Stefan Pedersen6-Jan-03 3:41
Stefan Pedersen6-Jan-03 3:41 
GeneralAPI for determining the file system on system disk Pin
abhinarulkar5-Jan-03 22:26
abhinarulkar5-Jan-03 22:26 
GeneralRe: API for determining the file system on system disk Pin
Michael Dunn5-Jan-03 22:28
sitebuilderMichael Dunn5-Jan-03 22:28 

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.