Adding a printer fails with 1797
Fri, 14 Dec 2007 20:25:48 GMT
We're using the AddPrinter function to add a local printer. On a virgin
machine, the call is failing with a 1797 error. The odd thing is that iff we
add the printer manually through the Add Printer Wizard, then remove it, the
AddPrinter function completes OK and the printer is added.
Any thoughts?
--
R ...
|
GDI+ 1.1
Fri, 7 Dec 2007 07:23:02 -0800
Is there a GDI+ 1.1 available as a redistributable? If so, how do you obtain
it? Or, have GDI+ 1.1 new API's only been incorporated for managed code ?
Thanks,
Brian Corcoran
SAS ...
|
Semi-Transparent spot in a window
Sun, 2 Dec 2007 21:10:00 -0800 (PST)
Hi All,
I'd like to create a semi-transperant area in a dialog box. What would
be the best solution for that. I can control either alpha or
transperancy of the dialog. I dont need to make the window transparent
but to create a semi-transperant spot inside that window. It would be
helpful if you could provide ...
|
BitBlt in Vista Aero Theme
Tue, 20 Nov 2007 03:34:03 -0800
I am using bitblt to draw a bitmap to windows title.
It works fine with windows XP, 2003. But nothing is drawed in vista. In
further study, if I change the theme of vista to "windows classic" or
"windows vista basic", the bitmap is drawed again.
So look like it is only not working in Vista Aero Theme. Does ...
|
Scale problem with Graphics::ScaleTransform
Sat, 27 Oct 2007 13:30:40 +0800
Hi guys,
I want to scale a photo, so i wrote the following code:
Bitmap b(photo);
TRACE("PhotoWidth: %u PhotoHeight: %u\n", b.GetWidth(), b.GetHeight());
float sx, sy;
sy = sx = (float)toWidth/b.GetWidth();
if (height > 0) { // if set toHeight,
sy = (float)height/b.GetHeight();
}
Grap ...
|
Custom Draw of Button window control with BS_AUTORADIOBUTTON style
Sun, 21 Oct 2007 12:30:42 -0500
Hello,
I have been trying to use the Custom draw of the windows Button control with
the BS_AUTORADIOBUTTON style, but I am not getting the CDDS_ITEMPREERASE or
any of them for that matter. The only ones I am getting is CDDS_PREPAINT
and CDDS_PREERASE.
I have tried the normal response to the CDDS_PREPAIN ...
|
Custom Draw Tree_Control (api, non MFC)
Wed, 17 Oct 2007 00:33:53 -0500
Hello,
I am trying to custom draw a TreeView Control in flat API, not MFC. How can
I know when the last item has been drawn in the NVCUSTOMDRAW notification
message. I would like to draw in a memory DC and then once all the items
have been painted(drawn) BtBlt it to the screen DC.
Thanks.
James
...
|
|
|
WM_CTLCOLORSTATIC of Readonly edit control
Wed, 10 Oct 2007 11:53:09 -0500
Has anyone tried to respond to this message in the GDI+. In particular, I
want to set the background brush of a readonly Edit control so that it is
the same as the parent windows background. In this case the parent
background is a LinearGradientBrush.
In essents, I want the readonly edit control to be transp ...
|
GDI+: How to get actual 'footprint' height of a string?
Tue, 25 Sep 2007 04:06:01 -0700
Hi,
For a project of mine, I need to place very short strings (max. 3 chars,
usually only 1) in very tight cells, visually centering them as best as
possible (also to make the best use of the little room available).
Width is easy: once the proper StringFormat is set (GenericTypographic),
MeasureString() ...
|
A working sample for the prototype of the DeviceDlg for WIA 2.0
Wed, 19 Sep 2007 04:30:02 -0700
I have the latest VISTA SDK installed on my VISTA x64 machine and I have an
HP scanner that supports WIA.
I have the following DeviceDlg function prototype for WIA 2.0 in the
â??wia_lh.hâ?:
virtual /* [local] */ HRESULT STDMETHODCALLTYPE DeviceDlg(
/* [in] */ LONG lFlags,
/* [ ...
|