At the spooler level, how to determine the application that printe
Mon, 16 Jun 2008 12:41:00 -0700
We have a Windows service that receives notification when a user prints
(through the FindFirst/FindNextPrinterChangeNotification interface
functions). Our service examines the print job to extract certain
"demographic" information and save to a database. What we currently don't
have is the name of the ex ...
|
DPI and Scale Problem
Mon, 16 Jun 2008 04:13:01 -0700
Hi all,
I'm using Visual Studio 2005 (.net 2) to build my Windows application.
Now, I don't understand the effect of changing screen DPI.
My application is a card designer that uses forms as body of card and
controls on it as contents of card.
When I change DPI from 96 to 120 the controls of application for ...
|
DPI and Scale Problem
Mon, 16 Jun 2008 04:12:00 -0700
Hi all,
I'm using Visual Studio 2005 (.net 2) to build my Windows application.
Now, I don't understand the effect of changing screen DPI.
My application is a card designer that uses forms as body of card and
controls on it as contents of card.
When I change DPI from 96 to 120 the controls of application for ...
|
FillRectangle misses top and left edges with SmoothingMode smoothing
Fri, 13 Jun 2008 17:01:46 -0400
g.SetSmoothingMode(SmoothingModeHighQuality);
g.FillRectangle(brush, ClipRectangle);
The top and left edges will not be filled in with the brush color, but will
let the background show through.
If you turn off SmoothingMode:
g.SetSmoothingMode(SmoothingModeDefault);
it works fine.
How can ...
|
Changing print job properties
Fri, 13 Jun 2008 07:21:01 -0700
How do I change change the properties of a print job?
Thank you. ...
|
How do I get GDI+ 1.1 to work with my mfc app ?
Fri, 13 Jun 2008 12:52:55 +0200
I included GDI in my (MFC) app and I want to use the new
Bitmap::ConvertFormat function.
But its only available in GDI+ 1.1, which is installed on my pc (vista), but
my app keeps using the 1.0 version, even if I put the 1.1 gdiplus.dll in the
same directory as my app.
When I run the app, I get an 'entry poin ...
|
WM_PAINT in DialogBox
Thu, 12 Jun 2008 19:11:01 -0700
I have a Win32 VC++ program with a MODAL DialogBox (i.e. using DialogBox()
function). I'm using VisualStudio 2005.
I cannot seem to get WM_PAINT messages in the DlgProc. I have tried to use
InvalidateRect, UpdateWindow, RedrawWindow, and nothing seems to allow the
WM_PAINT message to get to my DlgProc.
...
|
|
|
ChangeDisplaySettingsEx failing with DISP_CHANGE_FAILED
Thu, 12 Jun 2008 17:18:01 -0700
Hi-
I am attempting to change the color mode, on Vista 32. I need to change the
color mode as soon as the user resumes from suspend/hibernate states. The
call is failing with a -1 when the user log on screen is present. So I tried
watching for the console/session connect message and made the call when the
...
|
Show a bitmap on windows screen
Thu, 12 Jun 2008 17:07:59 -0700 (PDT)
My plan was to capture a screen-shot to a bitmap array and then do
some changes on some of the pixels and then put the new bitmap on
screen- everything is in full-screen.
So, I used the GetDIBits and was able to capture the screen-shot and I
was able to save it in a bitmap file to make sure that this part is
...
|
rotate text overlay on control
Thu, 12 Jun 2008 03:27:00 -0700 (PDT)
Hi everyone,
Recently I encounter a problem that how to rotate text on control,
such as button ,static text, etc. That is to say, text rotates when
control rotating. I find some solutions on C# and VB. While I am
learning MFC, so I hope to solve it on MFC. Still now I have no idea
to this problem. Anyone who ha ...
|