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

C / C++ / MFC

 
GeneralRe: fast line drawing Pin
Anders Molin8-Mar-03 14:11
professionalAnders Molin8-Mar-03 14:11 
GeneralRe: fast line drawing Pin
TV8-Mar-03 14:15
TV8-Mar-03 14:15 
GeneralRe: fast line drawing Pin
Christian Graus8-Mar-03 14:54
protectorChristian Graus8-Mar-03 14:54 
QuestionView number of socket handles (Win98)? Pin
Moak8-Mar-03 13:16
Moak8-Mar-03 13:16 
AnswerRe: View number of socket handles (Win98)? Pin
Dana Epp8-Mar-03 14:43
Dana Epp8-Mar-03 14:43 
GeneralRe: View number of socket handles (Win98)? Pin
Moak8-Mar-03 14:52
Moak8-Mar-03 14:52 
GeneralOnFileOpen() extension Pin
Mad Docs Hairy Belly8-Mar-03 11:15
Mad Docs Hairy Belly8-Mar-03 11:15 
GeneralRe: OnFileOpen() extension Pin
MAAK8-Mar-03 20:51
MAAK8-Mar-03 20:51 
There is a way to make the single filter name opens more than one extension at the same time in SDI and MDI.

In the string table you will find an entry of id IDR_MAINFRAME. This string will somthing like this

[windowTitle]\n[docName]\n[fileNewName]\n[Filter Name] (*.ext)\n.ext\n[regFileTypeId].Document\n[regFileTypeName].Document

to make the single filter name opens more than one type, go after the forth \n and add the files extension as .ext separated by semi columns like this

[windowTitle]\n[docName]\n[fileNewName]\n[Filter Name] (*.ext)\n.ext;.doc;.bmp\n[regFileTypeId].Document\n[regFileTypeName].Document
Note, you may change the text after third \n to [Filter Name] (*.ext, *.doc, *.bmp) to display the extensions in the file open dialog.

In MDI the string table entry id will be that of the document rather than IDR_MAINFRAME, somthing like IDR_DOCTYPE.

On last thing, there is another way but am not sure if it can suit, which is to register a new document template with new ID but same view and document class. This will allow more than one filter to displayed in the file extensions list , but might not be easy to handle.
Check CMultiDocTemplate and CSingleDocTemplate in the MSDN for more information
GeneralRe: OnFileOpen() extension Pin
Mad Docs Hairy Belly9-Mar-03 4:03
Mad Docs Hairy Belly9-Mar-03 4:03 
GeneralStatic Redraw Pin
Shotgun8-Mar-03 11:03
Shotgun8-Mar-03 11:03 
QuestionHow to hide the web browser control Pin
Hesham Amin8-Mar-03 10:37
Hesham Amin8-Mar-03 10:37 
AnswerRe: How to hide the web browser control Pin
Nish Nishant8-Mar-03 10:49
sitebuilderNish Nishant8-Mar-03 10:49 
GeneralRe: How to hide the web browser control Pin
Hesham Amin8-Mar-03 11:13
Hesham Amin8-Mar-03 11:13 
QuestionExit code 136? Pin
Jason Henderson8-Mar-03 10:22
Jason Henderson8-Mar-03 10:22 
GeneralMessage routing Pin
AnTri8-Mar-03 6:57
AnTri8-Mar-03 6:57 
GeneralRe: Message routing Pin
Kuniva8-Mar-03 7:25
Kuniva8-Mar-03 7:25 
Generalfclose() error Pin
Kuniva8-Mar-03 6:00
Kuniva8-Mar-03 6:00 
GeneralRe: fclose() error Pin
Chris Losinger8-Mar-03 6:43
professionalChris Losinger8-Mar-03 6:43 
GeneralRe: fclose() error Pin
Kuniva8-Mar-03 7:16
Kuniva8-Mar-03 7:16 
GeneralRe: fclose() error Pin
Chris Losinger8-Mar-03 8:28
professionalChris Losinger8-Mar-03 8:28 
GeneralRe: fclose() error Pin
Kuniva8-Mar-03 7:42
Kuniva8-Mar-03 7:42 
GeneralRe: fclose() error Pin
Tim Smith8-Mar-03 16:13
Tim Smith8-Mar-03 16:13 
GeneralRe: fclose() error Pin
Kuniva8-Mar-03 8:11
Kuniva8-Mar-03 8:11 
GeneralRe: fclose() error Pin
Abbas_Riazi8-Mar-03 18:04
professionalAbbas_Riazi8-Mar-03 18:04 
GeneralModifyStyle dynamically Pin
Gumball8-Mar-03 5:37
Gumball8-Mar-03 5:37 

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.