|
Not sure what you mean. I selected combobox from the form/dialog toolbar, and dragged a rectangle on the dialog in the dialog editor. Is that what you mean? Same way I create a button or any other control I would be using.
|
|
|
|
|
Select the combobox in the resource editor and resize the height of the dropdown part.
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
Of the tens of thousands of MFC questions that I've seen since MFC was released in the early 90's, this has got to be the question I've seen posted most often.
You would think *someone* at MS would take note and make that interface a bit easier on such a trivial task
Cheers,
Tom Archer - Archer Consulting Group
"So look up ahead at times to come, despair is not for us. We have a world and more to see, while this remains behind." - James N. Rowe
|
|
|
|
|
|
Worse yet, a project including an XP manifest will automatically size the drop list for you, giving the false impression that you've already sized the drop list manually in the dialog editor...
You're reminded quickly of the problem when you give the program to someone using a Win98/2K machine, at which point they think you're playing some type of dirty psychological trick on them because they can't select anything from any of the combo boxes.
Pssst. You see that little light on your monitor? That's actually a government installed spy camera. Smile and wave to big brother!
|
|
|
|
|
Yes. This is part of what I was encountering. It just wasn't working on my work (win2k) machine. Grr!
|
|
|
|
|
Good lord I was hoping it was something as simple as that. Its weird though, it was working fine for a while.
Sheesh, thanks!
|
|
|
|
|
In what file is the display for a computer held?
|
|
|
|
|
What exact information are you looking for? As far as I know, the only way to retrieve various display information is via the Win32 API.
For example, DeviceCaps is used to determine screen resolution, number of supported colors and so on where as EnumDisplaySettings is used to enumerate all display modes. Therefore, it really depends on exactly what you need.
Cheers,
Tom Archer - Archer Consulting Group
"So look up ahead at times to come, despair is not for us. We have a world and more to see, while this remains behind." - James N. Rowe
|
|
|
|
|
how to crop an image in an application based on dialog? with thanks!(Cropping images)There is an image,which is 696*344, I want to put a box(200*150) on it, then i move the box to the right position with the mouse , at last,i can get a new image which is 200*150. Now I can't complete this , for help,With thanks.
thanks
|
|
|
|
|
The obvious thing to do is to create a new bitmap and use BitBlt to copy just the bit you need. The box part is easy, just draw the box at the mouse position, and keep track of the position in OnMouseMove.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I have a dialog box where I want to do some initialization.
With visual studio 6.0, the wizard allowed me to choose OnInitDialog.
This would put in all the proper code so my class would get the base class OnInitDialog and inside the function there was a call to CDialog::OnInitDialog.
What is the “proper” way to do this in vs7.0?
Am I supposed to manually look at the parameter list of the base function, duplicate the parameters and also duplicate the return type?
Obviously the wizard was much more convenient, but if I have to manually do it in vs7.0, then at least I want to know this is my fate.
Thanks,
Ilan
|
|
|
|
|
1) Open the Properties pane for the dialog.
2) Click the Overrides button. (2 buttons right of the lightning bolt) OnInitDialog should be in the list
Pssst. You see that little light on your monitor? That's actually a government installed spy camera. Smile and wave to big brother!
|
|
|
|
|
Hi,
I'm working with Visual C++ 6.0 SP6 on Win98 and WinXP.
I have a problem with MFC CMonthCalCtrl. When I try get the current system tyme with GetCurSel this returns other date.
For example:
The CMonthCalCtrl is 2005 May 30 as current selected. But GetCurSel returns 2006 Jun 28. Why?
This problem is similar in both operative sistems.
some suggestion to solving this?
Ivan Cachicatari Blog[^]
www.latindevelopers.com
|
|
|
|
|
I´m trying to change the default behavior of the tree control regarding images (selected/nonselected) to state expanded/collapsed. I´ve created a CImageList and called CTreeCtrl.SetImageList with TVSIL_STATE instead of TVSIL_NORMAL. That was all I could find in VC++/MFC documentation, what else should I do ?
|
|
|
|
|
It's been at least six (6) months since I last programed anything. I wanted to run background processes im application.Just wondering how I woould go about doing this.
Here is what I am trying to do.
I run my application and all you see is a progress bar.
Meanwhile, in the background my function run(), opens up an exisiting file on the computer somewhere and runs it. Also, it's supposed to run other applications well. Just trying to get back in the C++ lingo.
Thanks to all that might be able to help.
Mystic Valour
|
|
|
|
|
You Must Create a Thread in Your Application And Do
BackGround Proccessing there. Worker Threads are suitable
for your Situation
|
|
|
|
|
hy all!!!
I am completely new at MFC. How can i display an image (jpg or bmp) in a dialog in MFC? And then i have to change the image with another one (it's the same size) during runtime.
Thnx.
|
|
|
|
|
|
in VC++.Net , CImage Class is so easy to use;
Try it!
|
|
|
|
|
|
I’ve mad an application (or apart of an app) in C++ that I’d like to use in .NET C# Windows Application.
The thing I like to accomplish is to build some kind of component of my existing C++ app and expose some functions that I later can call from the C# app.
The application I like to encapsulate can be seen ass a window (MFC CWnd in ny case).
My fist question is if this is possible? If, then my second Q is How..?
I’ve made som COM and ActiveX programming so I’m not totally new in this topic, but I really don’t where to start.
I’m not expecting a total solution of my problem but Ideas where to start would be great.
Articles about this would be great. (Have not found any of them myself…)
_____________________________
...and justice for all
APe
|
|
|
|
|
|
Hi Friends,
I have developed the application compatible for Windows 2000, XP and 98. While running the application in windows 98, i have tried to resize the window. At that time i got the exception like "Stock Overflow". But i am not get the error in Windows 2000 and XP.
Please help me to resolve the issue in Win98.
Regards,
Pandi
|
|
|
|
|
"Stock overflow" ?? Do you develop some financial application?? I think this is "Stack overflow" no ?
Seriously, these kind of errors happen for example when there is a endless recursive loop. The same function get called over and over until there is not stack memory left to save the current status of the program.
When does this error occurs ? I mean, this is not because you are resizing the window but probably the program is doing something wrong at this time...
|
|
|
|