Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
J

Jeremy Davis

@Jeremy Davis
About
Posts
54
Topics
22
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Help with colors in MFC, damn I'm bad at painting :)
    J Jeremy Davis

    Simple just paint over it! Have a look here... http://www.codeproject.com/combobox/combobox\_flatcombo.asp HTH Jerry

    C / C++ / MFC

  • Face Recognition Software?
    J Jeremy Davis

    Anyone know of any good face recogition software? I've got two bitmaps, and I'd like to compare them to see if they are the same person.

    C / C++ / MFC

  • Open Source Form Editor...
    J Jeremy Davis

    I did a VERY limited one not long ago. Would you like the source to work on? I did not develop it further as I only needed limited functionality to fit into my main app.

    Collaboration / Beta Testing

  • Help with colors in MFC, damn I'm bad at painting :)
    J Jeremy Davis

    Try http://www.codeproject.com/miscctrl/cfctrl.asp Not exactly what you want, but you could work from here... HTH Jerry

    C / C++ / MFC

  • HOWTO: Find the
    J Jeremy Davis

    Great, thanks!

    C / C++ / MFC

  • HOWTO: Find the
    J Jeremy Davis

    Anyone know how I can find what the path name for "My Documents" is? For the windows and windows/system directory I can use GetWindowsdirectory etc, but what about the "My Documents" directory. Thanks for any help at all. Jerry

    C / C++ / MFC

  • Is it possible to stretch a bitmap to the size of a CStatic?
    J Jeremy Davis

    (1) Create a CStatic frame NOT bitmap, but invisible. (2) Get Chris Maunder's CDIBSectionLite class to draw the bitmap. (3) Find the size of your CStatic, and using CDIBSectionLite::Stretch draw the stretched bitmap. HTH Jerry

    C / C++ / MFC

  • Zip/Unzip class
    J Jeremy Davis

    Try having another look at ZLib. It's not that difficult. t has some examples, one of which I think is in pure C++. There are other examples such as an ActiveX version. Jerry

    C / C++ / MFC

  • Zip/Unzip class
    J Jeremy Davis

    Try having another look at ZLib. It's not that difficult. It has some examples, one of which I think is in pure C++. There are other examples such as an ActiveX version. Jerry

    C / C++ / MFC

  • Zip/Unzip class
    J Jeremy Davis

    I realise that you don't want to use MFC but there is an MFC class on this site. This may be a start for you. Otherwise try the ZLib library avaiable from all over the place. HTH Jerry

    C / C++ / MFC

  • How do you use the CToolTipCtrl?
    J Jeremy Davis

    Create a member function in your head file... CToolTipCtrl m_ToolTips; then..... BOOL CJVFAccessDlg::PreTranslateMessage(MSG* pMsg) { // TODO: Add your specialized code here and/or call the base class switch(pMsg->message) { case WM_LBUTTONDOWN: case WM_LBUTTONUP: case WM_MOUSEMOVE: m_ToolTips.RelayEvent(pMsg); } return cdxCSizingDialog::PreTranslateMessage(pMsg); } BOOL CJVFAccessDlg::OnInitDialog() { m_ToolTips.Create(this); m_ToolTips.SetDelayTime(200); m_ToolTips.SetDelayTime(TTDT_AUTOPOP, 50000); m_ToolTips.SetMaxTipWidth(200); m_ToolTips.AddTool(GetDlgItem(IDD_REPORTS), winmesgs[7]); m_ToolTips.AddTool(GetDlgItem(IDD_PERSONNEL), winmesgs[8]); : : etc etc etc return TRUE; }

    C / C++ / MFC

  • CListCtrl with CProgressCtrl as an item? (like Napster has done it)
    J Jeremy Davis

    Simple. Don't use a CListCtrl. Use Chris Maunder's CGridCtrl and sub-class one of the cells as a CProgressCtrl. HTH Jerry

    Article Writing

  • HOWTO: Find Height of stacked tabs in CPropertySheet
    J Jeremy Davis

    I have a CPropertySheet with stacked tabs. How can I find the total height of the stacked tabs. I add / remove various tabs in realtime, so the height will change!] Thanks to anyone that can help! :-)

    C / C++ / MFC

  • Spell Checking
    J Jeremy Davis

    oYou could automate Microsoft Word. Look in MSDN somewhere I think.....

    C / C++ / MFC

  • Visual Studio and Intellisense
    J Jeremy Davis

    One of the things you either love or hate about VS6 and VC6 is the the "member" list that appears after you've typed "->" or "." after a class or structure name. When I add members to classes of mine, they are accordingly listed after I type the class name. However I have a header file will lots of structure definitions in a directory different to the main app / source code. If I modify one of these structures, the changes don't seem to be listed when I next type the structure name. Any ideas why, or what I'm doing wrong please? Thanks

    C / C++ / MFC

  • Win2000 Style Open Dialog in Win98?
    J Jeremy Davis

    I've just had the comment "If Word2000 can display the new style file open dialogs in Win98 why can't you?". Well I'm not Microsoft! Anyone got any ideas though?

    Article Writing

  • Webbrowser scrolling
    J Jeremy Davis

    Have a look here.... http://www.codeproject.com/miscctrl/usemshtml.asp This file should do it, otherwise email me.

    C / C++ / MFC

  • Outlook Express/IE Address Book
    J Jeremy Davis

    Try looking on CodeGuru

    Article Writing

  • Printing Dialog Box
    J Jeremy Davis

    Best thing to do is a screen grab. void CMachine::PrintWindow() { // show options CMyPrintDialog PrintDlg( FALSE, PD_ALLPAGES | PD_USEDEVMODECOPIES | PD_NOPAGENUMS | PD_NOSELECTION | PD_DISABLEPRINTTOFILE, this); int Response = 0; Response = PrintDlg.DoModal(); if (Response == IDOK) { // get printer dc HDC hPrinterDC =(HDC) 0; hPrinterDC = PrintDlg.m_pd.hDC; ASSERT(hPrinterDC != NULL); CDC PrinterDC; BOOL IsAttached = FALSE; IsAttached = PrinterDC.Attach(hPrinterDC); ASSERT(IsAttached); // Set landscape LPDEVMODE pDevMode = PrintDlg.GetDevMode(); pDevMode->dmFields |= DM_ORIENTATION; pDevMode->dmOrientation = DMORIENT_LANDSCAPE; PrinterDC.ResetDC(pDevMode); // attempt to set abort procedure int SetAbortProcStatus = 0; // SetAbortProcStatus = PrinterDC.SetAbortProc( &AbortProc ); // attempt to start print job DOCINFO DocInfo; DocInfo.cbSize = sizeof(DOCINFO); DocInfo.lpszOutput = NULL; DocInfo.lpszDocName = "PDMW Windows Screen Print"; int StartDocStatus = 0; StartDocStatus = PrinterDC.StartDoc(&DocInfo); // if abort procedure set and print job started if (SetAbortProcStatus >= 0 && StartDocStatus >= 0) { // start page VERIFY(PrinterDC.StartPage() > 0); // get the screen dc HDC hScreenDC =(HDC) 0; hScreenDC = ::GetDC(NULL);// CDC ASSERT(hScreenDC != NULL); CDC ScreenDC; VERIFY(ScreenDC.Attach(hScreenDC)); // create screen device dependent (dd) bitmap CRect tmp; GetWindowRect(tmp); // ClientToScreen(tmp); // tmp.top -= ::GetSystemMetrics(SM_CYCAPTION); int ScreenWidth = tmp.Width();// - ::GetSystemMetrics(SM_CXEDGE) * 4;// 0; // ScreenWidth = ScreenDC.GetDeviceCaps( HORZRES ); int ScreenHeight = tmp.Height();// + ::GetSystemMetrics(SM_CYCAPTION);// - ::GetSystemMetrics(SM_CYEDGE) * 4; //- ::GetSystemMetrics(SM_CYCAPTION);// 0; // ScreenHeight = ScreenDC.GetDeviceCaps( VERTRES ); CBitmap ScreenBitmap; VERIFY(ScreenBitmap.CreateCompatibleBitmap( &ScreenDC, ScreenWidth, ScreenHeight )); // copy image to screen dd bitmap CDC MemDC; VERIFY(MemDC.CreateCompatibleDC(&ScreenDC)); CBitmap* pOldBitmap = NULL; pOldBitmap = MemDC.SelectObject(&ScreenBitmap); ASSERT(pOldBitmap != NULL); VERIFY(MemDC.BitBlt( 0, 0, ScreenWidth, ScreenHeight, &ScreenDC,

    C / C++ / MFC

  • How to play some AVI-Files ?
    J Jeremy Davis

    Ahh you're making the same mistake I did!! :-) DirectShow is NOT part of the DirectX toolkit. MS for some unknown reason decided to move it to the DirectX Media SDK which is spearate! I only learn't this after a 128M download! I does actually say this on the web site, but it is not very clear at all. (Us lot over here in England put it download to our lack of ability to read American!) Anyway why use DirectX? Try a CAnimateCtrl....

    C / C++ / MFC
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups