Click here to Skip to main content
15,905,420 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Getting selected text globally Pin
Tomasz Sowinski5-Aug-02 0:07
Tomasz Sowinski5-Aug-02 0:07 
GeneralRe: Getting selected text globally Pin
Gene Yu14-Jan-03 8:56
Gene Yu14-Jan-03 8:56 
GeneralDefault font set for window's dialogs Pin
CaesarCZ4-Aug-02 10:28
CaesarCZ4-Aug-02 10:28 
GeneralRe: Default font set for window's dialogs Pin
pépé5-Aug-02 2:18
pépé5-Aug-02 2:18 
GeneralScrollbar size Pin
CaesarCZ4-Aug-02 10:22
CaesarCZ4-Aug-02 10:22 
GeneralRe: Scrollbar size Pin
PJ Arends4-Aug-02 12:40
professionalPJ Arends4-Aug-02 12:40 
GeneralRe: Scrollbar size Pin
alex.barylski4-Aug-02 16:51
alex.barylski4-Aug-02 16:51 
GeneralOpen Filename dialog won't show. Pin
redeemer4-Aug-02 8:43
redeemer4-Aug-02 8:43 
I'm trying to show an Open File dialog but it won't show and i can't figure out what i'm doing wrong, here's the code:

{
	OPENFILENAME ofn;
	char szFileNames[(MAX_PATH+1)*1000+2];
	const char szFilter[] = "MP3 Files (*.mp3)\0" "*.mp3\0";

	szFileNames[0] = 0;
	ofn.lStructSize = sizeof(OPENFILENAME);

	ofn.hwndOwner = ghWnd;
	ofn.lpstrFilter = szFilter;
	ofn.lpstrCustomFilter = (LPSTR)NULL;
	ofn.nFilterIndex = 1;
	ofn.lpstrFile = szFileNames;
	ofn.nMaxFile = sizeof(szFileNames);
	ofn.lpstrFileTitle = NULL;
	ofn.lpstrTitle = (LPSTR)NULL;
	ofn.Flags = OFN_ENABLESIZING | OFN_FILEMUSTEXIST | OFN_HIDEREADONLY | OFN_PATHMUSTEXIST | OFN_ALLOWMULTISELECT | OFN_EXPLORER;
	ofn.nFileOffset = 0;
	ofn.nFileExtension = 0;
	ofn.lpstrDefExt = "mp3";
 
	GetOpenFileName(&ofn);



Thanks in advance

-Rune Svendsen
GeneralRe: Open Filename dialog won't show. Pin
Pavel Klocek4-Aug-02 10:06
Pavel Klocek4-Aug-02 10:06 
QuestionHow to link msvcr70.dll into my program in VC++.net Pin
tfElep4-Aug-02 8:40
tfElep4-Aug-02 8:40 
AnswerRe: How to link msvcr70.dll into my program in VC++.net Pin
Philip Patrick4-Aug-02 9:10
professionalPhilip Patrick4-Aug-02 9:10 
GeneralRe: How to link msvcr70.dll into my program in VC++.net Pin
2sky4-Aug-02 9:44
2sky4-Aug-02 9:44 
GeneralRe: How to link msvcr70.dll into my program in VC++.net Pin
2sky4-Aug-02 9:48
2sky4-Aug-02 9:48 
GeneralPrinting in Landscape Pin
Desmond Mardle4-Aug-02 7:17
Desmond Mardle4-Aug-02 7:17 
GeneralRe: Printing in Landscape Pin
Roger Allen4-Aug-02 9:28
Roger Allen4-Aug-02 9:28 
Generalquestion about new and delete[] Pin
nss4-Aug-02 6:37
nss4-Aug-02 6:37 
GeneralRe: question about new and delete[] Pin
Pavel Klocek4-Aug-02 6:48
Pavel Klocek4-Aug-02 6:48 
GeneralRe: question about new and delete[] Pin
nss4-Aug-02 7:24
nss4-Aug-02 7:24 
GeneralRe: question about new and delete[] Pin
Philippe Mori5-Aug-02 7:23
Philippe Mori5-Aug-02 7:23 
Questionhow can I respond Enter Event in a editbox? Pin
Angel Kid4-Aug-02 6:21
Angel Kid4-Aug-02 6:21 
AnswerRe: how can I respond Enter Event in a editbox? Pin
valikac4-Aug-02 6:26
valikac4-Aug-02 6:26 
GeneralRe: how can I respond Enter Event in a editbox? Pin
Angel Kid4-Aug-02 6:29
Angel Kid4-Aug-02 6:29 
GeneralRe: how can I respond Enter Event in a editbox? Pin
Pavel Klocek4-Aug-02 7:06
Pavel Klocek4-Aug-02 7:06 
AnswerRe: This is one of the famous question. Pin
Masaaki Onishi4-Aug-02 7:05
Masaaki Onishi4-Aug-02 7:05 
AnswerRe: how can I respond Enter Event in a editbox? Pin
PJ Arends4-Aug-02 8:17
professionalPJ Arends4-Aug-02 8:17 

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.