Hi,
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 a
bitmap which contains the bits behind my control - I'm
lost as to where to start though, I'm really new in C++,
my previous language is VB. I could then BitBlt parts of
this bitmap to my control's window, so it would appear
invisible but just displaying the same pixels as the
background in that position.
Does anybody know how to do this, is it a simple function
or does it require complex subclassing or hooks or
something? I'd love to learn how to do this if it is but
please explain it as I have only been at this language for
a few months and am still picking it up.
Also, I might be pusing it here, but aswell as that, is
there an easy way of propogating click events, etc.
through to any controls which may be beneath mine? (If
this sounds really difficult even for you guys please let
me know then I'll know not to bother trying!) 2 1270
"Ben Taylor" <be***********@yahoo.co.uk> wrote in message
news:0c****************************@phx.gbl... 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 think you are confusing a windowless control (a control that has UI
but does not have its own HWND, instead painting directly on the
container's window) with a control that's invisible at run-time (a
control that does not have any UI at all, except a rather boring icon in
designer that's there just so you can select it and access its
properties). Common dialog control is of the latter variety.
, i.e. I want it to draw and have size, etc. but be largely transparent.
Windowless control fits the bill.
--
With best wishes,
Igor Tandetnik
"For every complex problem, there is a solution that is simple, neat,
and wrong." H.L. Mencken
I've just seen your reply to my further message, thanks for that. Would you
still be able to create the DC variable in the same way, i.e. using
CClientDC dc(this) ?
Also I don't suppose you know how to add the text that VB programmer would
see as the description in the object browser? i.e. the C++ control-creating
equivalent of using Tools, Procedure attributes, description, in Visual
Basic.
Thanks a lot
Ben
"Igor Tandetnik" <it********@mvps.org> wrote in message
news:OQ**************@TK2MSFTNGP10.phx.gbl... "Ben Taylor" <be***********@yahoo.co.uk> wrote in message news:0c****************************@phx.gbl... 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 think you are confusing a windowless control (a control that has UI but does not have its own HWND, instead painting directly on the container's window) with a control that's invisible at run-time (a control that does not have any UI at all, except a rather boring icon in designer that's there just so you can select it and access its properties). Common dialog control is of the latter variety.
, i.e. I want it to draw and have size, etc. but be largely transparent.
Windowless control fits the bill. -- With best wishes, Igor Tandetnik
"For every complex problem, there is a solution that is simple, neat, and wrong." H.L. Mencken
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Cecile Muller |
last post by:
I've been trying to just open a png and display it, that way:
<?
header ("Content-type: image/png");
$im = imagecreatefrompng('empty.png');
imagepng($im);
?>
But the transparency is not...
|
by: Piotr Wolski |
last post by:
how to make my page that it was correct with every browser standard?
for example when i change HTML's table size it has no effect when i see
it under mozilla and has effect under Internet...
|
by: Matthias Czapla |
last post by:
Hi!
I want to resize uploaded GIF images. Currently I do it like this:
<?php
// ...
$img = imagecreatefromgif($path);
$img_scaled = imagecreate($new_width, $new_height);...
|
by: Robin Becker |
last post by:
Has anyone done transparency with PIL & TIFF? I'm using PIL to generate
a preview TIFF for embedding into an eps file and am being asked for the
TIFF to support transparency.
--
Robin Becker
|
by: Mr. x |
last post by:
Hello,
I would like that my image's background color will be transparent.
What I have is only paintbrush.
My image is *.jpg format (I have tried to save it as *.gif format, and I got
less...
|
by: Nathan Sokalski |
last post by:
I am trying to create graphics with GDI+ that include transparency. However,
the transparency never seems to show up, even though my colors have an alpha
value of 0. How can I generate a graphic...
|
by: tommaso.gastaldi |
last post by:
In a previous post I have been asking about a way to test Alpha
Transparency.
Bob and Michael have kindly provided some ideas.
Here I would like to share the function I have prepared, for the...
|
by: ZikO |
last post by:
Hi.
I've experienced one problem. Im using three froms. Two of them are
maximized, whereas one is normal form with transparency. Transparency stops
working, that is I can see the color which...
|
by: dragze |
last post by:
Hi,
On one of the pages of my site i use two javascripts, one makes transparency of png's work in IE, and the other embeds a flash player.
Now use one of the scripts it works fine, use both and...
|
by: Martijn Mulder |
last post by:
When I populate a ToolStrip with ToolStripButtons with a .png-image on
it, will Windows understand the transparency of the .png file?
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |