Search:
Type: Posts; User: mega Kluge
Search:
Search took 0.10 seconds.
-
September 8th, 2017, 04:47 PM
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()...
-
September 8th, 2017, 01:07 PM
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...
-
June 23rd, 2016, 10:17 AM
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...
-
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...
-
September 17th, 2015, 01:59 PM
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...
-
September 17th, 2015, 10:19 AM
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...
-
August 12th, 2015, 12:59 PM
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...
-
August 11th, 2015, 10:34 AM
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...
-
March 4th, 2015, 09:51 AM
Pretty simple problem it seems.
HMETAFILE hMetaFile = GetMetaFile(myMetaFile);
METAFILEPICT myMetaPict;
// ??? What can I do to populate the METAFILEPICT struct to access...
-
January 12th, 2015, 06:01 PM
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...
-
January 12th, 2015, 02:09 PM
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...
-
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 |...
-
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 ...
-
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 ...
-
Declared as
CMFCToolBar m_wndPageBar; // MainFrm.h
In...
int CMainFrame::OnCreate
if (!m_wndPageBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP |...
-
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...
-
August 1st, 2012, 09:21 AM
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...
-
August 1st, 2012, 06:08 AM
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"...
-
August 1st, 2012, 04:21 AM
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.
-
July 31st, 2012, 03:51 PM
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...
-
June 11th, 2012, 05:27 PM
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
-
June 11th, 2012, 04:17 PM
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...
-
June 11th, 2012, 03:27 PM
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...
-
June 11th, 2012, 03:06 PM
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...
-
June 11th, 2012, 10:40 AM
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,...
|
Click Here to Expand Forum to Full Width
|