473,395 Members | 1,694 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,395 software developers and data experts.

resizing window

hi all,
in my project i am opening a dialog window through an sdi.......i want the dialog window to fit inside the sdi.... is ther any solution for it?....

awaiting for ur reply
thanks in advance


ganesh
Apr 14 '07 #1
7 2447
Banfa
9,065 Expert Mod 8TB
It is not clear what you mean, it is normal to let Dialog boxes with frames and title bars keep their set size as it is what is required to contain them.

On the other hand if what you are doing is opening a border less, title less, modeless dialog as the client area of the Window then what you can do is intercept the WM_SIZE message of the parent window and use the data contained to resize the dialog box so it exactly fits the client area.
Apr 14 '07 #2
hi,
Thanks for ur rely...but still i need more infor.. i wil jus explain the flow of my exe fiel...u jus try to imagine...
when i run my application a SDI application wil appear.....then if i open a new file a dialog window will apear....all i need this dialog window to fit exactly insid this window.....is it possibl to do? giv me suggestion...


awaiting for ur reply...

with reagrds
ganesh.p
Apr 16 '07 #3
Banfa
9,065 Expert Mod 8TB
when i run my application a SDI application wil appear.....then if i open a new file a dialog window will apear....all i need this dialog window to fit exactly insid this window.....is it possibl to do? giv me suggestion...
This would normally be consider unnecessary an is definitely not part of the windows look and feel.

Anyway the standard Open dialogue box is resizeable by the user.
Apr 16 '07 #4
hi,
thnks for ur reply...though it is unnecessary ,but for me i want to know whetr we can fit the dialog window insid the SDi application? i Know well tht the dialog size can be maximized and minimized,but i want the maximization and minimization of the dialog window to happen within the sdi ...... Is it possibl? if so all i need is a gud suggestion......


with regards
ganesh.p
Apr 16 '07 #5
Banfa
9,065 Expert Mod 8TB
thnks for ur reply...though it is unnecessary ,but for me i want to know whetr we can fit the dialog window insid the SDi application? i Know well tht the dialog size can be maximized and minimized,but i want the maximization and minimization of the dialog window to happen within the sdi ...... Is it possibl? if so all i need is a gud suggestion......
Sorry, what I meant to ask was that this is a rather unusual thing to attempt, is there a particular reason why you want to use the Open dialog like this? There may be a better way of achieving your goal.

I do not think you will be able to do this with the standard open dialogue box, you would have to write a custom one. Is it your intention that the Window menu should remain active? (If yes then why?).
Apr 16 '07 #6
hi,
thnks for ur reply.......can u give the othr methods to achive my goal.....

wel my windows menu shuld b in activ condition...bcos i m using the windows options such as open, save, new etc.,

awaiting for ur reply


with regards
ganesh.p
Apr 16 '07 #7
Banfa
9,065 Expert Mod 8TB
wel my windows menu shuld b in activ condition...bcos i m using the windows options such as open, save, new etc.,
Yes but if the open dialogue box is already displayed then there is no reason for the menu to remain active at this point.

It is still not clear to be what you are trying to achieve with this behaviour, although it can be achieved by using a modeless dialogue box displayed inside the client of your window.

Look up the function CreateDialog, a standard OpenFile Dialog box will not work because it is a modal dialog box.

A modeless dialog box does not prevent access to its parent and siblings where as a modal dialog box does.
Apr 16 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: riki | last post by:
Hi, i have a big problem...i'm using one jscript for resizing of all of my pics in popUp...in main html i'm having many little pics and clicking on them they open in popUp and resize to larger...
0
by: TJ Talluto | last post by:
<facts> I have a "month calendar" that always displays exactly 42 days... and alongside is a vertical box that displays the detail (form fields) of any particular select event that appears on the...
11
by: Jozef | last post by:
I have some old code that I use from the Access 95 Developers handbook. The code works very well, with the exception that it doesn't seem to recognize wide screens, and sizes tab controls so that...
8
by: Chris | last post by:
Hi, In design mode I built some windows with some controls (e.g. listboxes, labels, chgeck boxes etc.) in it, and I did set the property for the window size is set to normal. Now, when I run...
11
by: Sharon | last post by:
I'm writing a new control derived from UserControl. I need to get an event when the control is done resizing. I tried the Resize, SizeChanged, Move and the Layout events and I also tried to...
2
by: Gabriele Bertolucci | last post by:
I hope someone has the magin wand within reach. I would like if there exists a way to avoid VBA window automatic resizing after you press F1 key in the code window. It's a really wearing...
1
by: Nick ! | last post by:
Chris Share <usenet at caesium.me.ukwrote: http://web.cs.mun.ca/~rod/ncurses/ncurses.html#xterm says "The ncurses library does not catch signal, because it cannot in general know how you want...
13
by: bgraphics2031 | last post by:
I'm trying to get this iframe to dynamically resize by dragging a vertical bar, but it's not working in Mozilla (It originally worked in IE but I've been trying to port it over). Any help will be...
9
by: dli07 | last post by:
Hello, I'm trying to convert a piece of code that creates a dynamic vertical resizing bar in a table from internet explorer to firefox. It's based on a post from...
4
by: qhimq | last post by:
hi I built a program on windows 2000 professional and it works flawlessly to the eye. I can resize the window and all of it's contents scales correctly. I moved it onto windows XP with a setting...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.