drawing anywhere onscreen by using transparent window?
I am looking for an example of how to create a transparent window that I can
position anywhere on the screen and draw to it using the GDI. So basically
it would look like I am drawing on the screen over top of everything, but
really I am just drawing to my transparent window.
Anyone know how to do this and/or know where there is an example of how to
you can make window with WS_POPUP style or use as a parent HWND_DESKTOP.
Then override its OnEraseBkgnd and return TRUE - this should stop CWnd from
filling background with white color. All drawing do in OnPai...Transparent bitmap in dialog box
I want to display a bitmap in a dialog box. I use the resource editor to
specify the bitmap. How can I make the bitmap transparent? For example; all
white areas should have the same color as the dialog window.
I remember seeing examples on how to do this but for the life of me I now
cannot find them!
Try looking at:
"Anders W�hlin" <firstname.lastname@example.org> wrote in message
> I want to display a bitmap in a dialog box. I use the resou...transparencies are printing opaque instead of transparent
All shadows and pictures set on color transparent, transparent gradient, or a
certain percentage transparent, are printing opaque instead of transparent.
It shows up transparent on the file when I set it, but shows opaque in the
print preview mode, and then prints opaque as well.
...Transparent CStatic on Dialog with image in background
I'm developing a little program for windows mobile (think problem
should be the same for Win32) in MFC and have problems displaying a
dialog with an JPEG-image in the background and placing some
transparent CStatic's above it.
Here is what I dit:
BOOL CMyDialog::OnEraseBkgnd(CDC * pDC)
BOOL bRet = CDialog::OnEraseBkgnd(pDC);
// draw background image
HRESULT hr = pFactory.CoCreateInstance(CLSID_ImagingFactory);
hr = pFactory->CreateImageFromFile(_T("\\myBackImage.jpg"), &pImg);
RECT a; a.bott...How to make opup Menu Transparent
Can you please let me know how to make CMenu Object popup menu
I am able to make window transparent using
I'm not sure the concept is directly supported. If it isn't, you will have to implement a
menu-like popup window yourself.
On Thu, 4 Sep 2008 05:25:55 -0700 (PDT), Matrixinline <email@example.com> wrote:
>Can you please let me know how to make CMenu Object popup menu
>I am able to make window transparent using
>ModifyStyleEx(WS_EX_TRANSPARENT,0...Image with transparent background
Is it possible to have an image on a button in MFC with a transparent
background? How do I do this?
Also, how are images stored in MFC applications? Are they compiled into the
exe? What is the compression like?
Maybe you could use this class:
"Bart" <firstname.lastname@example.org> wrote in message
> Is it possible to have an image on a button in MFC with a transparent
> background? How do I do this?
> Also, how are images stored in MFC applications? Are they compiled into ...transparent object does not print out transparent
I have created a circle (with the circle tool) that has varient shading. It's
orange in the center and fades out to transparent. I have a second object
sitting behind my circle. While I am working on the document, the object
appears as I have designed it, but whent I go to print, the object becomes
solid and the transparent part becomes white, hiding the second object
behind. Can anyone help me figure out how to print it out as a transparent
This is a known bug in Publisher 2002/2003 along with the rest of Office
Group the objects together, then ...about transparent window
I use SetLayeredWindowAttributes API then the other control(Button or
EditBox...) all transparent, but I want the control not transparent,Now,I use
UpDateLayeredWindow API then I cannot see any control in my window but can
respond message(click..),those all not I want.Please help me
On Thu, 1 Feb 2007 18:40:00 -0800, zola <email@example.com> wrote:
> I use SetLayeredWindowAttributes API then the other control(Button or
>EditBox...) all transparent, but I want the control not transparent,Now,I use
> UpDateLa...3M SandBlaster 423-120 Flexible Sanding Pad, 3.7 x 9.25-Inch, 120-Grit, Rectangle, 2-Sheet
Best deal: http://discountadvisors.info/index.php?id=B000GLHW3Q
Sandblaster, 2 Pack, 120G 3.7" x 9" Large Flexible Abrasives Detailed Sandpaper, Lasts 10 Times Longer Than Normal Sandpaper, Extreme Durability, Ultimate Comfort, Sandpaper Can Also Be Used On Detailed Flexible Abrasives Tool True Value #630-485.
3M SandBlaster 423-180 Flexible Sanding Pad, 3.7 x 9.25-Inch, 180-Grit, Rectangle, 2-Sheet:http://discountadvisors.info/index.php?id=B000GLE1OO
3M SandBlaster 413-220 Flexib...Transparent Image
I'm having bitmapinfoheader and bitmapbits. and i'm using
setdibitstodevice function to copy all the data in to the dc.
But i want to blt the tranparent bitmap there.
can u help me plz
There are numerous samples for this on codeguru or code project.
Andy Mortimer [MS]
Please do not send email directly to this alias. This alias is for
newsgroup purposes only
This posting is provided "AS IS" with no warranties, and confers no rights.
OR if you wish to include a script sample in your post please ...different rotation center for a rectangle
I want to rotate a rectangle based on a rotation center different from to
center given by default by visio. Is it possible?
Rasoul Khoshravan Azar
Civil Engineer, Osaka, Japan
Select the rectangle, you will see a rotation control handle, move the mouse
on it, the rotation center appears, select it and move it. You can also
display the size and position window and modify the center axis of the
selected shape in selecting the one you want in the combo box.
"Khoshravan" <firstname.lastname@example.org> a �crit dans le message
de news: 63FE47D9-AA67-4F51-8262-83179...Transparent color?
Using Visio 2000 and apparently can't do what I need. I need to overlay one
color rectangle on another and set a transparency for the one on top where I
can the one underneath. Can this be done with Visio 2003?
Transparency was added in Visio 2003.
John... Visio MVP
Need stencils or ideas? http://www.mvps.org/visio/3rdparty.htm
Need VBA examples? http://www.mvps.org/visio/VBA.htm
Common Visio Questions http://www.mvps.org/visio/common_questions.htm
Visio Wishlist http://www.mvps.org/visio/wish_list.htm
"SkeeBee" <email@example.com> wrote in message
I have a combo box that I have set the back style properties to be
transparent so that if I dont click on the combo box the cells underneath
should show through but they don't as the combo box shows as white and not
Any clues please?
I find that when I first place a combo box on a worksheet and change its
BackStyle to transparent it does become transparent. But after selecting an
item in the combo box it forgets it is transparent. This code, placed in
the sheet's module (right-click the worksheet tab and pick View Code), seems
to help it remember, at lea...Transparent bitmap in FlexGrid cell?
I have a bitmap in the resource (IDB_PICTURE). I need to display it on
a FlexGrid's cell with transparent background. Could someone show me
This is the only function available to put a picture on a cell
would it be possible to make the background of a scanned image transparent
for a publication?
Thanks and regards
What version Publisher?
There is a transparency tool on the picture toolbar, select your image, select the
tool and click on the background of the picture.
Mary Sauer MSFT MVP
"admin" <firstname.lastname@example.org> wrote in message
> Hi All,
> would it be possible to make the background of a scanned image trans...Transparent Check/Radio box on a XP Themed application
I have an MFC application which use the XP theme.
I created a class for drawing Check/Radio boxes tranparently (to avoid the
gray rectangle of those buttons):
HBRUSH CUiButton::CtlColor(CDC* pDC, UINT nCtlColor)
HBRUSH hbr = NULL;
// return hollow brush to preserve parent background color
hbr = (HBRUSH)::GetStockObject(HOLLOW_BRUSH);
This looks fine in a Non-Themed application (The rectangle of the
Check/Radio controls, recieves the color of its parent). But on a Themed
application I get a black rectangle.
When I import a picture into a document and print this,
pcture resolution is ok.
When I change the transparency color (from white to
transparent) the picture will be printed in a low
Orignal format is in tiff (also tried gif)
Any idea's ?
I'm using pub2002
How do you know it's printing in Low Resolution? If it's just because the edges of things look
jagged, it's because you need to take care of the transparency in a different way.
Normally if you have somethign that looks like it has a white background and then some writing (or
something else) in ...Is it possible to print transparent fills when using
When I create a fill while using a gradient shading color, then select for it
to be transparent, it will show it as transparent on the screen, but will not
print (nor print preview) the color as being transparent. Is there something
I can do so it will print transparent?
Els513 <Els513@discussions.microsoft.com> was very recently heard to
> When I create a fill while using a gradient shading color, then
> select for it to be transparent, it will show it as transparent on
> the screen, but will not print (nor print preview) the color as being
> transparen...set background color to transparent
i am using vba to perform conditional formatting. i am having trouble setting
the background color to transparent. any help would be appreciated.
transparent is not a color. What are you trying to accomplish?
Dave Hargis, Microsoft Access MVP
> i am using vba to perform conditional formatting. i am having trouble setting
> the background color to transparent. any help would be appreciated.
my conditional formatting logic is done in vba by setting rgb properties.
this is a simplified version
--if x=2 then color blue
--if x=1 color red
I am building an ActiveX control, which I would like NOT
to be windowless (e.g. the common dialog control in Visual
Basic being an example of one that is windowless, I don't
want one like this), i.e. I want it to draw and have size,
etc. but be largely transparent. I can sort of mimic
transparency by using TranslateColor(AmbientBackColor())
but this doesn't take into account the fact that the
developer using it might want to have, say, static text
behind my control.
So what I want to do which I would appreciate any help
anybody can possibly give me, is *ideally* to create ...Further to transparency
Further to my previous post on Transparency, is it
possible for an ActiveX control to get the DC of its
container, so it can just draw to that?
"Ben Taylor" <email@example.com> wrote in message
> Further to my previous post on Transparency, is it
> possible for an ActiveX control to get the DC of its
> container, so it can just draw to that?
Make the control windowless. The container would then ask it to draw
itself via IViewObject::Draw passing the container's HDC.
With best wishes,
Igor Tandetnik...Transparent ListView
I would like to have a transparent listview. Do you know how can i do it ?
i don't want to ste a background image to my ListView. I really want to
make transparent all its cells (except text).
tia for information or source code.
Just have a look at these controls to see whether they satisfy your
"Maileen" <firstname.lastname@example.org> wrote in message
> I would like to have a transparent listview. Do you know how can i do it ?
>...How do I keep a transparent wordart transparent thruout printing.
I am working in Publisher and have a wordart that I have made transparent.
However, when I print it, it prints in full color although it shows
transparent on the screen. I have Canon printers.
By default, WordArt's background is transparent. Is it the wording that is
printing full color? Are you filling the WordArt with *No Fill?*
"Curly" <Curly@discussions.microsoft.com> wrote in message
>I am working in Publisher and have a wordart that I have made tra...I can not set transparency into chart
I am using Ms Excel 2003. I cant set the trasparency between two overlapping
into a chart. The slidebar is disabled into the formatting dialog of the chart
Transparency is not supported in xl charts on a pc. I think the Mac guys
have it better.
There is a work around for column charts, unfortunately it doesn't work
for area charts.
> I am using Ms Excel 2003. I cant set the trasparency between two overlapping
> into a chart. The slidebar is disabled into the formatting dialog o...No transparency?
Using Microsoft Publisher 2002 on XP, I wish to "lock" details
on Page 2 (" Installed" page after page ONE)
I use Ctrl M to take me to page TWO
I add the details (rectangles with frame) then revert to
page one, (Ctrl M) BUT I cannot see the details on Page TWO
I've tried fiddling with Ctrl T, but...zilch.
Can you help please?
John <non_such@blueTONyonder.cNEo.uk> was very recently heard to utter:
> Using Microsoft Publisher 2002 on XP, I wish to "lock" details
> on Page 2 (" Installed" page after page ONE)