Click here to Skip to main content
15,890,579 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Printing & Print in Progress dialog Pin
Waldermort2-Apr-06 20:32
Waldermort2-Apr-06 20:32 
QuestionMDI and ResizeParentToFit() Pin
Sarvan AL2-Apr-06 20:16
Sarvan AL2-Apr-06 20:16 
AnswerRe: MDI and ResizeParentToFit() Pin
Sarvan AL3-Apr-06 23:20
Sarvan AL3-Apr-06 23:20 
QuestionCMetaFileDC Pin
yang__lee2-Apr-06 19:25
yang__lee2-Apr-06 19:25 
AnswerRe: CMetaFileDC Pin
Nibu babu thomas2-Apr-06 19:58
Nibu babu thomas2-Apr-06 19:58 
QuestionBrowser Pin
Tran Ngoc Minh2-Apr-06 18:32
Tran Ngoc Minh2-Apr-06 18:32 
AnswerRe: Browser Pin
Hamid_RT2-Apr-06 18:46
Hamid_RT2-Apr-06 18:46 
AnswerRe: Browser Pin
Laxman Auti2-Apr-06 20:28
Laxman Auti2-Apr-06 20:28 
::OPENFILENAME ofn;
char *szFileName=new char[1024];
ZeroMemory(szFileName, sizeof(szFileName));
ZeroMemory(&ofn, sizeof(ofn));
ofn.lStructSize = sizeof(ofn); // SEE NOTE BELOW
ofn.lpstrFilter = "*.bmp;*.*";
ofn.lpstrFile =szFileName;
ofn.nMaxFile = 1024;
ofn.Flags = OFN_EXPLORER | FN_FILEMUSTEXIST|OFN_ALLOWMULTISELECT|OFN_READONLY;
ofn.lpstrDefExt = "bmp";

CString str;
if(GetOpenFileName(&ofn))
{
CString str=ofn.lpstrFileTitle ;//szFileName ;
CString temp;
str.TrimLeft();
int index;
while(str.GetLength()>0)
{
index=str.Find('\0') ;
temp=str.Left(index);
str=str.Mid(index+1,str.GetLength()-1);
}
}


From the above you can get the name of the selected file

Knock out "T" from CAN'T
You 'CAN' if you think you 'CAN'
Cool | :cool:
AnswerRe: Browser Pin
Naveen2-Apr-06 20:32
Naveen2-Apr-06 20:32 
AnswerRe: Browser Pin
Waldermort2-Apr-06 22:29
Waldermort2-Apr-06 22:29 
Questionabout menu Pin
FlyWithYou2-Apr-06 18:12
FlyWithYou2-Apr-06 18:12 
AnswerRe: about menu Pin
Ganesh_T2-Apr-06 18:24
Ganesh_T2-Apr-06 18:24 
AnswerRe: about menu Pin
thatsme_cool2-Apr-06 18:49
thatsme_cool2-Apr-06 18:49 
GeneralRe: about menu Pin
FlyWithYou2-Apr-06 19:02
FlyWithYou2-Apr-06 19:02 
AnswerRe: about menu Pin
thatsme_cool2-Apr-06 19:14
thatsme_cool2-Apr-06 19:14 
QuestionEdit Box Pin
beardy janggut2-Apr-06 16:30
beardy janggut2-Apr-06 16:30 
AnswerRe: Edit Box Pin
Christian Graus2-Apr-06 17:26
protectorChristian Graus2-Apr-06 17:26 
GeneralRe: Edit Box Pin
normanS3-Apr-06 0:53
normanS3-Apr-06 0:53 
QuestionWriting text on given bitmap file Pin
KongHL2-Apr-06 14:48
KongHL2-Apr-06 14:48 
AnswerRe: Writing text on given bitmap file Pin
Christian Graus2-Apr-06 16:17
protectorChristian Graus2-Apr-06 16:17 
GeneralRe: Writing text on given bitmap file Pin
KongHL2-Apr-06 16:20
KongHL2-Apr-06 16:20 
GeneralRe: Writing text on given bitmap file Pin
Christian Graus2-Apr-06 16:28
protectorChristian Graus2-Apr-06 16:28 
AnswerRe: Writing text on given bitmap file Pin
Hamid_RT2-Apr-06 18:31
Hamid_RT2-Apr-06 18:31 
QuestionVariables in DLL help Pin
borono2-Apr-06 13:05
borono2-Apr-06 13:05 
QuestionCEdit Class Pin
merlinore2-Apr-06 11:23
merlinore2-Apr-06 11:23 

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.