473,396 Members | 1,998 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

WM_GETMINMAXINFO

Hi,

I am trying to enforce a minimu dialog size using a
handler for the WM_GETMINMAXINFO event. I have (manually)
added the handler to my dialog class:

void CMyDlg::OnGetMinMaxInfo(MINMAXINFO *lpMMI)
{
lpMMI->ptMinTrackSize = CPoint(MIN_WIDTH, MIN_HEIGHT);
}

The problem is that the values I am setting do
not "take". In other words, on successive trips through
the function above, the values in lpMMI->ptMinTrackSize
retain their original values. I can see them change
within the function, but when it is re-entered the next
time the values go back to what they had been originally.

Any ideas on what is going on here?
Thanks,

Steve
Nov 16 '05 #1
0 1169

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

Similar topics

3
by: Harry_Crow | last post by:
I want to restrict the minimum size of the form. I find that there are properties MaximumSize and MinimumSize. This will help you control the maximum and minimum size the form, when the form is...
2
by: Wim | last post by:
I noticed that my program was reacting slow when moving it over the screen. So I went looking for what was causing this. It seems Form.MinimumSize is the culprit. At first I had this.MinimumSize =...
4
by: Sean | last post by:
Hi, I would like to know where I can get the value for Windows API Notification? For example: private const int WM_ACTIVATEAPP = 0x01C; private const int WM_NCACTIVATE = 0x086; I couldn't...
3
by: Richard | last post by:
I have a requirement to put a GDI style circle or rectangle border around the selected row of a datagrid/ It will overlap into the row above and below the selected row. Doing this in a the OnPaint...
30
by: Bonj | last post by:
what is windows message 36? It seems to be getting fired to my wndproc even before WM_CREATE.
1
by: What-a-Tool | last post by:
Have code that is called by my form re-size event. While the form borders are being dragged back and forth, this code will run continuosly, when it really only needs to run at the end of the...
6
by: Rob | last post by:
I need to create a form that will resize only the verticle size of the Form and not the width. So far I'm partial to the following code. Can someone please elaborate the ??? . . . . Const...
4
by: Rob | last post by:
I want to resize the height of a form without resizing the width, therefore I tried: Private Sub Form1_Resize(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Resize ...
6
by: slg | last post by:
Is there a simpler way to increase the mdi form caption height? I am following this article but not sure where should i change? I belive its most probably in the WmNCCalcSize TIA ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
tracyyun
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...
0
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,...

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.