473,811 Members | 3,008 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

MFC: How to resize a control with only SendDlgItemMess age (ie. without MoveWindow)

Is it possible to change the size of a Windows object (in this case a
PictureBox) without calling MoveWindow?

I'm writing a plugin for Winamp, in which I want to display a smooth
bar that displays a continuously changing output value.

In this Winamp plugin I cannot use the SendMessage command because it
causes lockups with Winamp. I _can_ use SendDlgItemMess age.

The following code does the job:
MoveWindow(GetD lgItem(pitch_co ntrol_hwnd, IDC_BMP), 500, 400, out_val, 10, FALSE);

Unfortunately, MoveWindow uses SendMessage commands internally, so I
get lockups.

How can I change the size without getting any SendMessage calls?

Notes: I know I can use a ProgressBar for this, but in WinXP, they are
not smooth anymore, but drawn with blocks that are too big.

Any other ideas to display a (smooth) bar on the screen with a
changing size are also welcome...

Regards,

Theo
----
Apr 18 '06
11 5592
On Tue, 18 Apr 2006 14:02:57 GMT, Phlip <ph*******@gmai l.com> wrote:
Alf P. Steinbach wrote:
Please don't help change this into a Windows programming group.


Are you in a bad mood?


After the "Pete Becker Incident" he's waited to spring it on someone
else. Just human nature, we know which way it all rolls... right. Btw,
did anyone else notice just after the tiff, suddenly Pete's .sig
changed. Now he's consultant.

I now wait for the "Indignatio n Phase." Hold on, I have to get me
popcorn. Spare me the "it's none of your business" crap. If you post
your life on usenet, it's public and common knowledge. (The reader can
interpret what common means.)

The Bible tells us to love our neighbors, and also to love
our enemies; probably because they are generally the same
people.
Apr 18 '06 #11
Default User wrote:
You know, just because you post something doesn't mean we have to
follow it. I happen to think your ideas are pretty bad for the most
part, I just don't feel like arguing them out. I just ignore them.


Feel free to ask about any of them. ;-)

--
Phlip
consultant
Apr 18 '06 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
4874
by: Caronte | last post by:
Hi all, I have a problem using Custom control class inside a DLL Extension. My Custom control use Class property to specify the register class name for the control. Both Dialog Class and Custom control class are inside the dll. When i run the application i can't view the dialog and Vc++ display an error on ShowWindow procedure.
5
8784
by: andy.g.ward | last post by:
I keep getting this when trying to create an MFC activex control in a c# windows service - anyone got any ideas what the missing module could be??? Exception thrown : System.IO.FileNotFoundException: The specified module could not be found. at System.Windows.Forms.UnsafeNativeMethods.CoCreateInstance(Guid& clsid, Object punkOuter, Int32 context, Guid& iid) at System.Windows.Forms.AxHost.CreateWithoutLicense() at...
2
1493
by: DaveKline | last post by:
I'm a new VB programmer, trying to use the VB Express 2005 development environment. Currently, when I try to resize any of the controls in a form designer window, I get an error that says "object reference not set to an instance of an object". This is true from the first moment when I make a new project from scratch. However, up until today, I had been able to resize the controls at will. Also, I can still resize the controls using the...
3
1352
by: MLH | last post by:
Me!AddnlOwnrList.Width = 5.1875 Me.Repaint Have tried the above in the on got focus event code to make the listbox control wider when its being used. I tried it in the Enter and Exit event code too. My control more or less disappears when the Width property is set when tabbing into the control and does not come back when tabbing off the control. I've never
2
5442
by: Mark Ingram | last post by:
Hi, ive got a custom control, which i like to keep at a fixed size (or a fixed ratio). So, during the OnSizeChanged function, i specify values for width and height. Which in *some* cases (i dont know why only some cases) results in stack overflow because changing the height results in OnSizeChanged being called again. What is the correct way of altering the size of the control after a user has changed the controls size?
1
920
by: James Arnold | last post by:
How is it possible to add 'fixed' jumps when resizing a control? For example, the listbox will only allow you to resize it so a full row will be displayed. I have a segmented progress bar that I would like to only show complete segments. Thank you!
1
2433
by: skyy | last post by:
Hi... I am creating a MFC ActiveX control porject... I would like to create a text box when the activeX object is load. How do i do it? Thanks!
4
5662
by: DeanJo | last post by:
I am trying to develop a resize module i can include on my pages that calculates the size of input fields based on the screen resolution... I can already detect the screen resolution, and i have the width / height multiplier for every resolution i need to support... my problem is this... I want the include file to be totally universal so heres my plan I will use CSS styles to set the current text box size... i want the javascript to then...
2
2273
by: AdamOnAccess | last post by:
Hi, I'm trying to find an event in the web browser control that triggers when the user clicks on a link inside the control and arrives at a new page. My web browser control only shows 5 events in the property list: On Updated, On Enter, On Exit, On Got Focus, and On Lost Focus. Is this all the events? I've tested the On Update event with debug.print, and it does not fire when a user clicks inside the control, or when the user arrives...
0
9731
marktang
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10651
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10405
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9208
agi2029
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7671
isladogs
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6893
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5556
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5697
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4342
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.