|
Need more detailed info - post your OnSize handler or routine you're using to change the widths.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
Hi,
It could be that you're resizing when the scrollbar has already been shown.
Try to do it in OnSizing (WM_SIZING) or try to SetRedraw(FALSE) before, then SetRedraw(TRUE) after the resizing process.
Hope this helps,
Paolo.
------
"airplane is cool, but space shuttle is even better" (J. Kaczorowski)
|
|
|
|
|
I'm writing a DirectDraw program that has a menu at the start from a template. The author of the template uses
TextOut(hDC, MENU_XBEG, MENU_YBEG, szItem, lstrlen(szItem));
to print out a menu item.
I would like to change the size and typeface of the font. How would I accomplish this? SetFont()?
Thanks for the assistance,
Ryan
|
|
|
|
|
First you need to create font. Use CreateFont or CreateFontIndirect for that. Next, you need to make your font 'selected' with SelectObject. You should call DeleteObject when you no longer need the font. I think tyou should read "Font Creation and Selection" in "Platform SDK : Windows GDI" docs before coding. These docs should be installed with your VC++ help.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
does anybody knows how to display an amount with commas?
wibi
|
|
|
|
|
Check GetNumberFormat() or GetCurrencyFormat() in your doc's.
Ben Burnett
---------
On the topic of code with no error handling -- It's not poor coding, it's "optimistic"
|
|
|
|
|
Also look at COleCurrency. Works like COleDateTime and has a format function that will return a currency in the locale form (such as commas for japan or . if in the US)
Bret Faller
Odyssey Computing, Inc.
|
|
|
|
|
I have created a onctlcolor function to change to text color of my controls.
but i can not change the text color in the combo box. Is there another funtion to do this?
Thank you
|
|
|
|
|
I have (so far) a default MDI app with a CSizingControlBarG derived bar docked on the left side of my frame. Since it's the default MDI implementation (the one created by AppWizard), I have a menu, one toolbar, and a status bar. When I begin a resize operation on the control bar, the splitter shows up as it should, but is drawn on top of the toolbar, and doesn't go all the way to the status bar. So, the splitter is the correct length, but it's shifted up by the height of the toolbar (seemingly). How do I fix this, so it draws from the bottom of the toolbar (instead of over it) down to the status bar?
Thanks in advance.
Jamie Nordmeyer
Portland, Oregon, USA
Jamie Nordmeyer
Portland, Oregon, USA
|
|
|
|
|
hello
hsa anyone worked with this class? it causes me a lot of troubles, sometimes it doesnt find existing files and sometimes the CFtpFileFind::IsDirecory() is not working...
pliz help? are there any other alternatives to this class?
thanks
RG
|
|
|
|
|
I have created an OnCtlColor function to set the colors of my text boxes, labels,listbox and combo boxes. It works fine with all but the combo box.
Can the text color of a combo box be modified? If so how can it be done?
Thank you
|
|
|
|
|
I am trying to send messages to a process I created using CreateProcess().
For the send function I need a HWND handle of the process' main Window. How can I optain this handle from what I know after calling CreateProcess()?
LP
|
|
|
|
|
There's no general method for that - CreateProcess can spawn the windowless process, after all. You should use WaitForInputIdle with handle of the child process to give it a time to create its main window, and FindWindow to get the HWND of this window. You'll need the window class name, use Spy++ if you don't know what's the class name.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
|
Hi,
I have an MFC MDI app that I have used to develop a CView derived class that does some pretty involved OpenGL rendering. Nothing heavy computationally, just very focussed on a customers needs.
I now need to apply what I have done in such a way that it can be wrapped by an ActiveX control.
Aside from buying a good book, that I naturally intend to do, can anyone tell me if it possible to reuse the CView derived class
Any pointers would be greatly appreciated to get me going until the book arrives...
Matthew
|
|
|
|
|
Yes you should be able to reuse this by wraping it in a MFC ActiveX. The book would be the best to help you, I like to avoid using MFC and ActiveX in the same sentence. Damn! Did it twice.;)
|
|
|
|
|
Check this site:
http://www.wzw.tu-muenchen.de/~syring/ActiveX/
Jonathan de Halleux, Belgium.
|
|
|
|
|
Does anyone know how to load an icon into the statusbar without using MFC ? I need this to a COM server in wich I'm not using MFC.
thanx
/John
|
|
|
|
|
|
Do you know of any examples on this, I don't seem to be clever enough to get it running with the explanation of SB_SETICON in MSDN : ), at least not yet that is.
|
|
|
|
|
I don't seem to be clever enough to get it running with the explanation of SB_SETICON in MSDN
Hmmm... That's a real problem. Which part of the explanation you don't understand?
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
I don't know how to create a handle to my icon.
I hope I made it clear that I want to create the icon in the "taskbar statusbar". Just left of the clock that is. In MSDN I found something called Shell_NotifyIcon is this perhaps what I should use ?
Thanks for helping me out !
/John
|
|
|
|
|
I don't know how to create a handle to my icon
LoadIcon
I hope I made it clear that I want to create the icon in the "taskbar statusbar"
Quite the opposite - you asked for icon in statusbar. Statusbar != taskbar. There's no such thing as "taskbar statusbar" (however, it would be pretty good name for pub visited by developers)
In MSDN I found something called Shell_NotifyIcon is this perhaps what I should use
Yes.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
Seems like I got it wrong, what I ment was Taskbar Status Area.
I have gotten so far that I can create default icons (100-105), but still not the ones that I create. I assume that I don't use LoadIcon correctly.
|
|
|
|
|
I can create default icons (100-105)
What do you mean by 'default icons' (100-105)? The predefined icons (the ones with IDI_ prefix) have numeric identifiers well above 32000.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|