CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: mega Kluge

Page 1 of 6 1 2 3 4

Search: Search took 0.10 seconds.

  1. Re: GetDC(null) sanity check...Will this DC ever get released?

    Thanks gentleman. I see now the cause of my confusion and the probable source of the problem. There are handwritten GetDC() methods (as in 2kaud's example) sprinkled close together with MS GetDC()...
  2. GetDC(null) sanity check...Will this DC ever get released?

    I'm running some legacy code that eventually fails on GetDC(null). It will return NULL with GetLastError() returning 0. The documention I've read says that the culprit is a GDI resource leak...
  3. Re: Issue with playing metafile to device context then saving to bitmap. What I missi

    Thanks for the reply and sorry for my long delay in answering. (I got pulled into another issue.)

    My goal isn't to draw the device context to a window -- my goal is to play a metafile to a device...
  4. Issue with playing metafile to device context then saving to bitmap. What I missing?

    Long day. Sure I'm missing something simple. Anyway, I have a valid old school metafile (not enhanced metafile) in the form of a LPMETAFILEPICT. It's valid and everything looks good.

    What I'm...
  5. Replies
    3
    Views
    3,589

    Re: CDockBar background color?

    That was my initial thought and I went back and double checked. Everything looks OK. Furthermore, I downloaded the sample from the site, compiled it with VS2015, and ran it. It doesn't work.

    One...
  6. Replies
    3
    Views
    3,589

    CDockBar background color?

    I have a legacy Visual Studio 6.0 application. I need to change the color of the Dockbar (as illustrated in the attached picture). I have tried the implementation found here to no effect.

    I'm...
  7. Re: Migrating VC++6.0 Application to VC++2015 - AfxClassInit assertion triggered.

    Thank you, Victor. That discussion did indeed help. While my problem wasn't specifically related to characters sets, I was linked to a wrong library. (The legacy application has two modes of...
  8. [RESOLVED] Migrating VC++6.0 Application to VC++2015 - AfxClassInit assertion triggered.

    I've imported a legacy Visual C++ 6.0 application into Visual Studio 2015 and attempted to compile. The .exe compiles OK but when opening a file within the application, I get debug assertions when...
  9. Populate METAFILEPICT struct given a HMETAFILE. Missing something simple?

    Pretty simple problem it seems.



    HMETAFILE hMetaFile = GetMetaFile(myMetaFile);

    METAFILEPICT myMetaPict;

    // ??? What can I do to populate the METAFILEPICT struct to access...
  10. Re: Old school SetWinMetaFileBits() fails after ~4K iterations. What am I missing h

    Hi Victor,

    Well, maybe this post might be worth something after all. The SetWinMetaBits was failing due to GDI handle leak elsewhere in the code. There was an HDC that wasn't being released...
  11. Mods: Please delete me.

    I'm suspect it might have something to do with the handle, but I can't find any good documentation on this.

    Basically I have an old, legacy VC++ 6.0 app that does some work with the old metafile...
  12. Re: CMFCToolBar issue: Can't change title?

    THANK YOU! That solved it 100%!

    I changed the call to:


    if (!m_wndPageBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP | CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY |...
  13. Re: CMFCToolBar issue: Can't change title?

    These are the only two references to IDR_PAGEBAR in the entire solution:


    mainfrm.cpp(101, 29): !m_wndPageBar.LoadToolBar(IDR_PAGEBAR))
    resource.h(110, 9): #define IDR_PAGEBAR ...
  14. Re: CMFCToolBar issue: Can't change title?

    Is there another source of IDs that I may have overlooked?

    // From Resource.h
    //
    #define IDR_MAINFRAME 128 // This is loaded (m_wndToolBar)
    #define IDR_MAINFRAME_256 ...
  15. Re: CMFCToolBar issue: Can't change title?

    Declared as
    CMFCToolBar m_wndPageBar; // MainFrm.h

    In...
    int CMainFrame::OnCreate


    if (!m_wndPageBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP |...
  16. [RESOLVED] CMFCToolBar issue: Can't change title?

    Visual Studio 2013. C++.

    Created a blank, SDI MFC app.

    I added a new CMFCToolBar (by hand, didn't use a wizard)

    It docks OK. The commands work OK. It renders OK. No problems there.

    In the...
  17. Re: From Visual C++ 6.0 - How to instantiate .NET dialog?

    Looks like I wasn't signifying the correct apartment model.

    Using this in the C# code enabled me to meet with success. Thanks for the help gentlemen!



    [STAThread] // Here's what I...
  18. Re: From Visual C++ 6.0 - How to instantiate .NET dialog?

    More or less. However, I'm calling it one way from a Win 7 64 Bit box and another way from a 32 bit Win XP Box (the dll is compiled for 'any system). So, there really is no way to call it "exactly"...
  19. Re: From Visual C++ 6.0 - How to instantiate .NET dialog?

    It works fine if I call it from a VS 2010 component. I think there is something with regards to dialogs/COM that I'm missing.
  20. [RESOLVED] From Visual C++ 6.0 - How to instantiate .NET dialog?

    I have a very simple scenario but I haven't had any luck with it all day. Searches yield no usable results.

    I have a MFC C++ app written circa '98. I need to do some simple graphics work that...
  21. Re: Simple paint/drawing tool or control for VC++ 6.0?

    Yes, and I can keep searching and hoping that maybe someone *will* have a link to an existing control that we both think should exist in abundance.

    Thanks, again, for your time. :D
  22. Re: Simple paint/drawing tool or control for VC++ 6.0?

    Igor, I thought the same thing!

    I googled and binged all day and only posted this as a last resort. Either my terminology is wrong, or articles with controls of this nature have long since been...
  23. Re: Simple paint/drawing tool or control for VC++ 6.0?

    Thanks.

    That doesn't quite suit my needs. I need a control/code that will allow for simple drawing calls that I can invoke from within my visual c++ application, that remains in the scope of my...
  24. Re: Simple paint/drawing tool or control for VC++ 6.0?

    I can embed paint into a custom executable and put it as a button on my tool bar? So when a user wants to simply modify a bitmap, the user can press the button, and the region in question will come...
  25. Simple paint/drawing tool or control for VC++ 6.0?

    Does there exist a control that one can use for simple bitmap editing?

    Say I load a picture into a defined region. I click a button and a simple paint bucket control appears. One can draw lines,...
Results 1 to 25 of 135
Page 1 of 6 1 2 3 4





Click Here to Expand Forum to Full Width

Featured