I'm sorry you're right. I didn't think it was so easy, I supposed i had to use fd.m_pOFN->something to do it. I found that immediately after the post. Excuse me again.
Desmo16
Posts
-
still on CFileDialog -
2 CFileDialogsThe CFileDialog has on the bottom-right corner a button labeled as "open". How can i change the label into "save" ? Thanx in advance, Desmo16.
-
still on CFileDialogHi all, The CFileDialog has on the bottom-right corner a button labeled as "open". How can i change the label into "save" ? Thanx in advance, Desmo16.
-
2 CFileDialogsYou are right, now i wrote: CFileDialog fd(TRUE, NULL, "*.txt", OFN_FILEMUSTEXIST | OFN_HIDEREADONLY); fd.m_pOFN->lpstrTitle = "Carica file di osservazioni"; fd.m_pOFN->lpstrFilter = "Text files (*.txt)"; and it works great ! Thanx !
-
2 CFileDialogsi tried with CFileDialog fd(TRUE, NULL, percorso, OFN_FILEMUSTEXIST | OFN_HIDEREADONLY); fd.m_pOFN->lpstrTitle = "load file"; fd.m_pOFN->lpstrDefExt = "txt"; and also with CFileDialog fd(TRUE, NULL, percorso, OFN_FILEMUSTEXIST | OFN_HIDEREADONLY); fd.m_pOFN->lpstrTitle = "load file"; fd.SetDefExt("txt"); but it doesn't work. Where should i search in the doc exactly ?
-
2 CFileDialogsHi all, I do: CFileDialog fd(TRUE, NULL, percorso, OFN_FILEMUSTEXIST | OFN_HIDEREADONLY); fd.m_pOFN->lpstrTitle = "Dialog Title"; Now i need a CFileDialog that shows only .txt files. I also need another CFileDialog which i use to save a file in which the "file type" field is .txt How can i do that ? Thanx in advance, Desmo16.
-
modeless dialog: is it opened ?Hi all, I need to know if a modeless dialog is opened and, if this is the case, close it. How can i do that ? Thanx in advance, Desmo16.
-
button kept pushedHi all, I've a button to move to the next point in a plot when the button is pushed. The matter is that i must click on the button many times if i wanna continue to pass to the next point in the plot, while i would like to obtain this keeping clicked the button. How can i do that ? Thanx in advance, Desmo16.
-
filesystem navigation in c++#include WHAT ?
-
filesystem navigation in c++The compiler tells me PathRemoveFileSpec(path); identifier not found even with a research independent from the object is there anything i should include ? Thanx in advance, Desmo16.
-
ffilesystem navigation in c++ 2Hi all, They told me there's a function similar to GetPathName() _____________________ CFileDialog fd; fd.GetPathName(); --------------------- which return the directory instead of the full path. Does anybody know which one is it ? Thanx in advance, Deamo16.
-
filesystem navigation in c++Hi all, I've got the path to a file returned by a CFileDialog. (Let's call it "path") Now i wanna open another file in the same directory. I know the name of the file, of course. I tried with: file.open(path+"\..\newfile.txt",std::ios::in); but it tells me "not enough memory" at runtime. How can i do that ? Thanx in advance, Desmo16.
-
tabstop2Hi all, I'm sorry this is the last silly question of the day :-) To disable tabstop i do ModifyStyle(WS_TABSTOP,0,0); What should i do to enable tabstop again ? Thanx, Desmo16.
-
tabstopThat's what i needed, thanx but... How can i re-enable the tabstop ?
-
tabstopHi all, How can i set the tabstop property of a control to FALSE from the code ? Thanx in advance, Desmo16.
-
tab orderHi all, How can i set the order of navigation among controls when i press TAB ? Thanx in advance, Desmo16.
-
problem with an edit controlWhen i say "whole number" i mean "not a single digit", that is to say 345 or 765 and not 1 or 5 or 9. And no, not all values are valid 'cause they had a geophysical meaning in the software. Anyway, how can i trigger the event handling the enter key ? Thanx in advance, Desmo16.
-
problem with an edit controlHi all, I use the edit control EN_CHANGE event in order to update a slider in a software. The edit control contains a number. My problem is that every time i write a digit in the edit control this triggers the EN_CHANGE event, the slider is updated and the cursor in the edit control is put at the beginning. I wanna the update of the slider AFTER i enter the whole number in the edit control, not for every digit, but my boss want me to do that without using a button to load the value entered in the edit control into the slider. Is there another event i can use to obtain that ? Thanx in advance, Desmo16.
-
particular double to CString to edit controlit works ! Thanx !
-
particular double to CString to edit controlHi all, I read a double (2.567656e-010) from file, then I convert it into CString and finally i put it in an edit control, but the value is too small so in the edit control i find 0.000000. Here you have the code i use, toremove is the variable linked to the edit control: double var=0; std::fstream f_load; f_load.open("C:\\best_pop.txt",std::ios::in); f_load>>var; CString tmp; tmp.Format("%lf",var); toremove.SetWindowText(tmp); What should i do to see 2.567656e-010 in the edit control ?