I'm apologize for being a stupid American, but I don't understand Hebrew... Thanks for the recommendation though! Yours, Brian
User 749
Posts
-
Many grate free tutorials on line -
Maximizing app at startup - how?You don't want to pass WS_MAXIMIZE, a style code, to ShowWindow. You're supposed to do as Mr. Warg pointed out: Change pMainFrame->ShowWindow(m_nCmdShow); pMainFrame->UpdateWindow(); to pMainFrame->ShowWindow(SW_SHOWMAXIMIZED); pMainFrame->UpdateWindow(); Note the WS_* in front means a *W*indow *S*tyle code, whereas the SW_* in front means a *S*how*W*indow code. AppWizard supplies the pMainFrame->ShowWindow(m_nCmdShow); pMainFrame->UpdateWindow(); code for you; all you have to do is to replace the m_nCmdShow with SW_SHOWMAXIMIZED, and you're in business!! Brian Hart
-
Encrypt/Decrypting Files (CR & LF chars not correct in .exes)Hey Dan, Not to burst your bubble or anything, but posting an encryption hash algorithm with full commenting to the Web is not going to make your program very secure. (Or I suppose you trust us fellow programmers!) Anyway, I suppose it won't hurt, since this cryptography scheme is already published in "Applied Cryptography." Brian Hart
-
How To : center a CFormView in a SDI app ???>In OnInitialUpdate just call CenterWindow(); That might just work... for an MDI child window, not a SDI view!! Yours, Brian Hart
-
c++"Programming Windows 95 with MFC" by Jeff Prosise is recommended highly among programming circles these days. It's published by Microsoft Press, and you can find it at http://www.bn.com/, http://www.amazon.com/, http://www.fatbrain.com/, or in the computer programming section of your favorite bookstore. Cheers, Brian
-
Site Has Been ReviewedHello Mr. Maunder, I am a frequent freelance article contributor to "Visual C++ Developer," a magazine published by Pinnacle Publishing. Their URL is: http://www.pinpub.com/vcd/, and the editor is Kate Gregory (kateg@pinpub.com). I want to let you know that I drew attention to your site, The Code Project, in my article that has just come out for June, so expect a little jump in the traffic that has been by your site. Thank you, Brian Hart
-
GUI design questionDear eng, I agree; a read-only edit box is the way to go. Also, you can turn on its "Word-Wrap" style simply by turning of the Auto HScroll and Horizontal Scroll styles. Then make it so that it looks like a listbox (as in area), so that the filename will wrap and add a Vertical Scroll bar (but turn off Auto VScroll) so theu user can scroll the text. They also get a context menu that they can use to copy text to the cliboard with! Yours, Brian Hart
-
Default Browser SettingsI would suggest simply letting the user type the URL of the site they want to go to in your program, and then call the function ::WinExec(theDialog.m_strURL, SW_SHOW);, where theDialog.m_strURL is a data member for the URL edit box you provide. This function will simply feed the URL passed to it to whatever Web browser is registered on the user's machine as the default. Also, the default browser on a user's machine simply refers to whichever browser is associated with the ".html" file extension. This is just like a situation where say you made a BMP editor, and somebody else made a better BMP (bitmap) editor, and you both used MFC. Since MFC has InitInstance() fill out Registry entries on startup to make your program get launched when a BMP file is double-clicked, your app is the "default browser" for BMP files. Say then the user starts the other BMP editor, closes it, and then double-clicks the BMP file. Since MFC does the same work in that other app's InitInstance(), the other app opens, and is now the "default browser" for BMP files. When you check the 'Check to see if is the default browser' in your Preferences or Options or Properties window, what you're doing is telling MFC whether or not to do the above with the files the browsers can show you -- both IE and Netscape are made using Visual C++!! Sincerely Yours, Brian Hart
-
Please provide COM wrappers!That would be an interesting idea, to start a conversion project -- I'm sure it would be pretty large-scale though. Thank you, Brian Hart