I am creating a dialog app but the info that I must handle requires more
space than just one dialog. I decided to go with a property sheet, that way
I can convey data to the user in a non-cluttered, orderly fashion. The first
prop page gets data from a socket and elements of that data is to be
displayed on all the pages. I'm using QuerySiblings() to notify the other
pages and pass a pointer to the data.
My problem is that unless the user clicks the tabs to cause InitDialog() to
be called on the other property pages, the PSM_QUERYSIBLINGS message is not
sent to those pages. ...problem with resizing
I'm writing a MDI application. Child window is splitted in three panes. In
the one pane I've got a FormView with some buttons. How to do, that this
FormView was in the center of a pane (even during resizing )? And the second
problem, how to do, that during resizing, splitters dividing window were
always in the same places?
Please, help me. I would be appreciate.
...Eliminating flicker in a CFormView
I'm using a CFormView in the left pane of a splitter window. The
CFormView contains a CListCtrl. During creation of the left and right
panes, which happen more or less simultaneously, there is significant
flicker in CFormView (caused, I believe, by the lag between creation
and dynamic resizing of the view and control). Anyway, I'd like to
have the CFormView draw to a memDC, and then bitblt to the screen. But
when I overrode CFormView::OnDraw, the function doesn't get called.
Does anyone have any suggestions?
Thanks in advance.
Nevermind. Something else is causing the flicker...
I am using OpenGL in my MFC app. The problem is when I resize the
window from the left or top border the whole scene of my OpenGL moves
even before my OnPaint event handler is called and when my OnPaint is
called after this it repaints the scene so this produces a flicker. If,
however I resize the window from the right or bottom border this
problem doen't occur. Can anybody please tell me what is happening?
...Bitmap resize on same DC
I am a little be confused!
I have a custom control with a bitmap inside
I create the bitmap with this code
CClientDC dc(this) ;
if (m_dcGrid.GetSafeHdc() == NULL)
m_pbitmapOldGrid = m_dcGrid.SelectObject(&m_bitmapGrid) ;
and in OnPaint i have:
CPaintDC dc(this) ; // device context for painting
CDC memDC ;
CBit...Another CPropertySheet help...
I am using the Wizard mode and I can remove the buttons, but I also want to
remove the 3D line control that appears above the buttons. What is the
...CStatic derived dialog and auto-resize
I would like to add auto-resizing feature to my Cstatic derived control. I
mean when I load a bitmap I would like to adjust size
I tried to SendMessage WM_SIZE but it doesn't work.
>I would like to add auto-resizing feature to my Cstatic derived control. I
>mean when I load a bitmap I would like to adjust size
>I tried to SendMessage WM_SIZE but it doesn't work.
You can resize a window by using the SetWindowPos or MoveWindow APIs.
MVP VC++ FAQ: http://www.mvps.org/vcfaq
...auto resize text without resizing cell in excel
format|cells|alignment tab|check "shrink to fit"
...How to resize a CTreeCtl when the dialog window is resized
Is there any documentation on how to do this? Or does anyone have any
>Is there any documentation on how to do this? Or does
anyone have any
You can handle the message WM_SIZE of dialog to change
the size of CTreeCtrl. Use message mapping.
Then call the MoveWindow function to change the size:
CTreeCtrl::MoveWindow(x, y, width, height)
>Is there any documentation on how to do this? Or does
anyo...Drop Down box resizing on open
I'm using Excel 2000 and have created a workbook with lots of drop down boxes
which keep resizing when I open up the sheet.
I have the drop downs in column B, with linked cells in column A with IF's
in column D based on column's A values.
I have macro's running in the background autofitting column D (the IF
variables can give results which range from 1-10 lines taken from another
The drop down boxes have been positioned in the lower half of the cells so
the cell contents can be read.
I have made sure that each drop down box has 'move but dont size with cells&...Resizing trendline title in legend
Im having trouble resizing the legend from 3 lines to 1. I have used a
scatter chart and then Add Trendline>Moving average. The legend that
is auto-generated is
"10 per. Mov. Avg. (PROJECTED
The title is broken up into 3 lines as above, and no matter how much I
resize or how much big I make the legend area or how small the font,
it INSISTS on using 3 lines.
Because the title is auto-generated (10 per. Mov. Avg.....) there is
nowhere where I can actually edit the title eg make it shorter, or
remove the alt-enter line breaks (if thats what it is). The ...Resizable CPropertySheet In Resizable CFormView
I'm trying to build an MFC-based SDI app that has a look somewhat like that
shown by Joseph M. Newcomer at http://www.flounder.com/proppage.gif in his
page "The Graphical Developer Interface" (
http://www.flounder.com/gdi.htm ). The property sheet and the pages in it
should be resizable, and it's the resizing that I'm having problems with.
I selected a CFormView-based application and put a CPropertySheet in it,
with appropriate pages. (I selected a CFormView over a dialog-based app
because I wanted the framework's support for all the things you don't get
with a...Can I automatically resize all controls in a Dialog without adding user codes
Can I design a Dialog that automatically resizes all controls when the
Dialog is being resized?
Yes. You can resize or move them as you wish by handling OnSize of the
dialog. SetWindowPos can be used to change the size and/or position.
Here is a helpful link:
No. You must explicitly take action on the OnSize handler to resize them. Sometimes,
there are packages called "geometry managers" that make this fairly straightforward (check
www.codeproject.com and www.codeguru.com for examples)...resize
trying to resize a template from 1 to 1 to 1 to 10. it has a frame around
the page and every time i resize, it resizes the frame to make it really
small in the corner.
is there a way this can be locked?
sounds like the frame may be associated with a background page, that often
happens with some materials that I put together.
"Harry Archer" <email@example.com> wrote in message
> trying to resize a template from 1 to 1 to 1 to 10. it has a frame around
> the page and every time i resize, it resizes the f...Access 2007: Resizing one textbox resizes all
Created a new form, all textboxes were auto-created from the Data Source
table. Now, I want to resize some of the textboxes to smaller and larger.
When I give focus to one textbox and drag to resize, all textboxes
automatically get focus and resize as well. Or, when I change the textbox
width in the Properties for one text box, all of them change. Never saw this
behavior in Access 2003.
A2007 has a new feature for linking all the controls.
Sometimes a very handy feature, sometimes not so handy.
To remove the linking, select one of the linked controls,
go to the arrange m...Resize CToolBar?
I've got a problem with CToolBar (MFC). Im trying to change the
toolbar resource at runtime using LoadToolbar(). The "new" toolbar is
loaded ok, but the width of the old layout remains (the buttons to the
far left are hidden). If I grab the toolbar and drag it, it is updated
to the new width. Is there a CToolBar method I can use to update it?
I've tried SetSizes() with no luck.
Try calling RecalcLayout().
"Fredrik" <firstname.lastname@example.org> wrote in message
> I've got a problem with CToolBar...Resizing?
Hello, can onyone explain in brief how to do sizing in MFC?
How large MFC-based products supports resizable windows/controls, i.e.
gui elements? I found nothing worth in MFC/MSDN.
For example, How photoshop does sizing its tool windows? Macromedia
Dreamweaver, CoolEdit, SoundForge? Do they programmed sizing by hand?
I know VCL sizing (anchors or aligned container panels), layout
managers in Swing/Java. What about MFC?
I am not exactly sure what you are asking. You start off by placing
controls in the form(dialog) in resource editor. This is a manual
process. It can be automated but a lot of i...how to resize the dynamic combobox created inside a listctrl........????????????
how to resize the dynamic combobox created inside a
> how to resize the dynamic combobox created inside a
Regardless of where it is created, you can use SetWindowPos to size it.
...How do I resize shape in powerpoint (resizing collapses the shape
I can draw a shape in PowerPoint 2007 but when I click on it to change the
size, it collapses vertically. I can stretch it horizontally but can't
change the vertical height.
Have you applied all the hot fixes and service packs to PowerPoint 2007?
There were issues with this early on, but most have been resolved with the
"jmmarq4" <email@example.com> wrote in message
>I can draw a shape in PowerPoint 2007 but when I click on it to change the
> size, it...Resize UML Actor
I'm using Visio 2003 Pro. We're working with UML diagrams and we're
having problems resizing the "actor" shape. We can make it larger, but
we can only shrink it to a certain size, and then Visio won't let us
shrink it any further. .32 X .87 is the smallest we can make it, which
is still too big for us.
Does anyone know of a way to get around this?
The size of the actor shape is controlled by the UML addin. It is strange
By the way here is a turn around.
The width cannot be smaller than the value of the User.Def...Resizing email message screen
On starting WLM, it always fills the whole screen of my laptop, no matter how
the screen was resized before the previous exit from WLM. Also, on opening
any email message after resizing WLM, the email message itself still occupies
the whole screen. Is this a problem with Windows 7 Premium which I have on
my laptop, or is it a problem with WLM?
Any window you want to resize permanently must be the /last/ window
Grab the corners of the window and drag it to the size you desire. Do not
use Maximize. Close all other windows first via the Taskbar and this one
last. Wi...Graphic and text resizing
I'm making a log and have a graphic from MS and I've added text next to it.
But when I group and then try to resize by the corner handle (and use the
shift key) it doesn't resize right. Part of the text isn't showing. The
graphic is smaller but the text starts disappearing as it gets smaller.
I thought resizing by grouping would resize the whole object/text as a
Select the text box, format, autofit text, check "shrink text on overflow."
Mary Sauer MSFT MVP
news://msnews.microsoft.co...Resizing embedded Excel Spreadsheet causes problems...
I'm using Visio 2000, and I've got an embedded Excel spreadsheet for a parts
list on the first page. I'm trying to expand the spreadsheet by a few
columns, and although it seems to work OK when I edit the Excel spreadsheet
and drag the frame out a few columns, when I close the edit the frame hides
the columns I've just added. Am I doing something wrong here? Any ideas on
how to fix it? Thanks!
"Brinks" <BrinkleyChristianD@JohnNOSPAMDeere.com> wrote:
>I'm using Visio 2000, and I've got an embedded Excel spreadsheet for a parts
>list o...Controls resize when clicked
In Excel 2002, activeX controls such as command buttons,
combo boxes, check boxes and option buttons will display
inaccurately until they receive focus. Fonts and symbols
used in the control often appear distorted until clicked.
For example, with the combobox, the dropdown arrow
appears scrunched. With command buttons it looks like the
height and width are both increased by 1 when clicked and
then the button returns to the wrong size when another
control receives the focus. This occurs on multiple
machines running Office XP, with and without service
packs 1 and 2 installed. The probl...Resize a document
Hello, I would like to resize a publisher document 8.5 x
11...to 7 x 9 without disrupting the layout. Any ideas?
Hi Tina (firstname.lastname@example.org),
in the Microsoft� newsgroups
|| Hello, I would like to resize a publisher document 8.5 x
|| 11...to 7 x 9 without disrupting the layout. Any ideas?
The only options really are to:
1. Create a new publication with the sizes you prefer.
2. Change the page size of your publication, then select all objects on the
page, group them, then resize as a group. Items such as text and text in
tables will not resize properly. You w...