|
Take a look at http://www.wotsit.org/
You can fin't definitions on most file formats there...
BTW, I would go with RTF, it's quite easy
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
Greetings,
I was wondering if there is there a way to only allow file previewing done in explorer to preview certain file extensions?
For example lets say I would like to allow html files to preview in file explorer but not wave files?
Thanks in advance!
|
|
|
|
|
|
Hmm, interesting idea, but I still have to leave the files visible for the user to be able
move the files around.
ie: copy a wav from folder 1 to folder 2.
|
|
|
|
|
Hello,
I posted some code yesterday and Nish [BusterBoy] was kind enough to give me a pointer.. I am trying to make a MDI Web browser (CHtmlView). But every time I try to surf to a new url, my app crashes (I have a edit box in the tool bar, when I enter any text into the bar and press enter, it crashes). I am very new to MDI apps and I dont even know if this syntax is correct. Can someone give me some pointers or maybe even tell me how I could re-write this code. Im pretty sure the problem is trying to pass the Navigate2 command to the MDIGetActive().. how can I do the same thing differently?
void CMainFrame::OnNewAddress()
{
CString strAddress;
m_wndDlgBar.GetDlgItem(IDC_E_ADDRESS)->GetWindowText(strAddress);
CHtmlView* pHtm = (CHtmlView*)MDIGetActive();
if(pHtm)
{
pHtm->Navigate2(_T(strAddress),NULL,NULL);
}
}
THANKS!
Rob
|
|
|
|
|
MDIGetActive returns a CMDIChildWnd* , so I think you should replace that line with
CHtmlView* pHtm = (CHtmlView*)(MDIGetActive()->GetActiveView());
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
YOU ROCK!!!!
Thanks a million, I have been beating my head against the wall for the past few days.
Rob
|
|
|
|
|
HELP ME!!!!!! I am designing an MP3 player (like Winamp) and i need some ideas or help on where to get infomation on how to design this. If any one can help me please reply to this or e-mail me at bh_bad@hotmail.com. Thanks.
theBHBAD
|
|
|
|
|
This ist what you want:
http://www.codeproject.com/dialog/skinsyse.asp
modified 12-Sep-18 21:01pm.
|
|
|
|
|
I have a MFC dialog application that has an option to go to the system tray after clicking a button... I also call ShowWindow(false); to hide my application window when I add the icon to the systray.
Unfortunately, I want to hide my app immediately after starting it... I try in InitDialog, OnCreate, and it does not happen - the window does not seem to respond to ShowWindow(false).
Some help will be highly appreciated, for I am stuck with this problem.
"Needless redundancy is the hobgoblin of software engineering." - Peter Darnell
|
|
|
|
|
ShowWindow (SW_HIDE);
/ravi
"There is always one more bug..."
ravib@ravib.com
http://www.ravib.com
|
|
|
|
|
Where do I call this? Because at the end of InitDialog it does NOT work... the icon is put in the systray, but ShowWindow (SW_HIDE) does not hide my dialog...
Looking forward to suggestions.
"Needless redundancy is the hobgoblin of software engineering." - Peter Darnell
|
|
|
|
|
seen this problem many times, but never found a satisfactory solution.
a working solution however, is to create a timer in initdialog, and then hide your app in the timer function, remembering to kill the timer as well.
Sorry to dissapoint you all with my lack of a witty or poignant signature.
|
|
|
|
|
Can you POST (not send) yourself a (WM_USER + n) message to your dialog towards the end of OnInitDialog()?
However, based on what you are saying here, if your dialog does not need any user input, why create and show the dialog in the first place?
|
|
|
|
|
|
That's a brilliant solution Joaquín!
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
If you don't find me on CP, I'll be at Bob's HungOut
|
|
|
|
|
Well, not to take away from the "brilliant"ness of Joaquin's solution, but I thought mine's was better.
Regards,
Alvaro
|
|
|
|
|
Joaquin's solution was for modal dialogs!
You solution lies in making the dialog modeless and then entering the CWinApp message loop which is a nice trick too I must say.
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
If you don't find me on CP, I'll be at Bob's HungOut
|
|
|
|
|
How to tile / cascade the windows on the desktop programly ?
example will be great !Thanx!
|
|
|
|
|
|
I want to transfer files through the Internet via Visual C++. There's no problem with the transaction of the files but if i try to execute these files at the remote site an error occurs. What have i to do during the transaction or else where to get the files running ?
|
|
|
|
|
First:
How you are transfering the files? Do You are using Ftp classes?
Second:
How you are trying to execute the app, in the remote machine, or in your pc but with the file in the remote machine?
Regards!!!
Carlos Antollini.
Sonork ID 100.10529 cantollini
|
|
|
|
|
I guess you will have some kinda small program stub running on the target machine and that you use that to receive the files over there. So all you need to do is add code to ShellExecute the transferred files within that stub.
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
If you don't find me on CP, I'll be at Bob's HungOut
|
|
|
|
|
Hello everyone,
I have a modaless CPropertySheet with its name "Control Panel"
I also use the command CWnd::FindWindow(NULL, "Control Panel") to locate the control panel.
Problem came when I just so happen to have the Window's _real_ Control Panel open while running my program. The FindWindow() found the CWnd ptr to the Window's Control Panel. I tried replacing the NULL in FindWindow() with my class name "CControlPanelSheet" which is a inhareted class of CPropertySheet, but FindWindow just returns NULL, and can't find any windows.
Does anyone know what may fix the problem? What is the proper way to retrieve the pointer to a modaless CPropertySheet?
Thank you for your help.
|
|
|
|
|
I tried replacing the NULL in FindWindow() with my class name "CControlPanelSheet"...
This parameter is not the name of the MFC but instead of something
called "Window class" which does not have much to do with your
classes --here it is "DIALOG", I think.
If you want to locate a pointer to the sheet inside the same application, then the best thing you can do is having a global variable that holds that pointer: the same CControlPanelSheet object can set/clear this global variable on construction/destruction, so you always know if the object is alive or not.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|