|
Hi,
I use an owner draw menu (handling WM_MEASUREITEM, WM_DRAWITEM, WM_MENUSELECT, WM_MENUCHAR messages).
Under MFC, if you use a popup menu with several menu items
(for example: recent files), two automatic menu scroll button appear on the top and the bottom of the list.
These buttons appear when there isn't enough place on the screen to display the menu items.
How can i change the default drawing of this buttons?
|
|
|
|
|
Hi,
Has anybody worked on MixerControl API.. I want to find the audio level from my microphone attached to the PC. I am using mixerGetLineControls function to get the volume. but it is not returning the correct volume. always returns some negative value.
Can anybody help me in this issue.
Thanks in advance
Poornima
|
|
|
|
|
You're asking for way too much to hope for a reply here. Vector graphics means that to zoom, all you need to do is scale all the vectors before drawing. You need to post some code, and ask specific questions about where you're getting stuck.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I am quite sorry that the only help I can offer is the following:
Check out ZedGraph on SF and the articles here on CP. ZedGraph is a Graphing Control capable of zooming into and out of Graphs. Looking at it's source might help you to find a solution. It was written in C#, though.
Cheers,
Sebastian
--
Contra vim mortem non est medicamen in hortem.
|
|
|
|
|
Sebastian Schneider wrote: ZedGraph is a Graphing Control capable of zooming into and out of Graphs
Mmmhh, I don't think this will help. I don't know ZedGraph but for a chart control, the most logical way of zooming and unzooming is simply to change the min and max values of the axis. And the rest should be done automatically .
|
|
|
|
|
|
Hai All,
Can any one help me to give the source code of Voice Communication using VoIP.Is it diffcult.
Plz.....Any one help me .....
Jeeva
|
|
|
|
|
|
Is there a way to use both EN_CHANGE & EN_KILLFOCUS for edit controls(dynamic edit controls)
I need to use EN_KILLFOCUS bcoz when the focus is changed from edit control to another edit control,the value entered should be validated.
and now if i change a value in the edit control and try to close the application,the value should be saved!!
So,the problem is that when i try to close the application,the focus changes,thus calling EN_KILLFOCUS..
So plz help me whether both can be used at the same time?
|
|
|
|
|
These are two different events and they are not used 'at the same time'. EN_CHANGE will be fired each time you change something in the edit (each time you press a key, it will be fired) and EN_KILLFOCUS is fired only when the control looses the focus. So, why do you see a problem there ?
|
|
|
|
|
See, the problem is that when there is a change in the edit box and then if i try to close my application(Either by File->Exit or Alt+F4),both EN_CHANAGE and EN_KILLFOCUS fires.
I use EN_KILLFOCUS to validate the entered text/value in edit control when there is a change focus.
So when i exit my application after changing the value,it should prompt for SAVING,it does but it also handles the EN_KILLFOCUS when a invalid value is entered.
|
|
|
|
|
zxc89 wrote: I use EN_KILLFOCUS to validate the entered text/value in edit control when there is a change focus.
So when i exit my application after changing the value,it should prompt for SAVING,it does but it also handles the EN_KILLFOCUS when a invalid value is entered.
Why don't you try One Time Validation?
This means validate before you save the data.
Personally I don't like message boxes to come up when I press tab saying "You have to enter proper data". Lol it's very irritating.
Nibu thomas
Software Developer
Faqs by Michael dunn
|
|
|
|
|
but my requirement is like that..Any more ideas???
|
|
|
|
|
Don't do the validation during EN_KILLFOCUS . Unless the validation is time consuming, do it with each EN_CHANGE .
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"We will be known forever by the tracks we leave." - Native American Proverb
|
|
|
|
|
Hi ,
I have splitter window with a treeview and a listview (like as in explorer)
in which i will be populating the data to be displayed in the listview's initialupdate . The problem is that wen i do a showindow maximize it takes a lot of time to get displayed (due to large data ) which in effect looks bad ,
is their any way i can reduce this .
Regards,
FarPointer
|
|
|
|
|
For the list view, check LVS_OWNERDATA in MSDN docs. Its a style to make a virtual listview. That could solve your problem. I dont think there is any thing similar for the tree view.
Magnus
|
|
|
|
|
Hi ,
Thanx for your coment but i have moved ahead with my implementatiobn that its not feasible to change it now ,as you might be aware that for this i need to give a LVN_GETDISPINFO handler .
I also want to bring to the notice that it takes time only once and that to in the ShowWindow(SW_SHOWMAXIMIZED),afterwards its prety fast due to SetRedraw(FALSE) etc .
Regards,
FarPointer
|
|
|
|
|
Well thats the only way I know of speeding up the list control. Except a full owner draw version... but thats an even bigger change
When are you populating the control.. maybe if you wait with that untill after the call to ShowWindow... might help.
Magnus
|
|
|
|
|
Hi ,
Anyway i appreciate your suggestion i was not aware of the LVS_OWNERDATA anyway.
Regards,
FarPointer
|
|
|
|
|
Hello All,
I am faced with a problem here. I need to come up with a mobile solution that allows remote users to plug into a database and update/enter/delete values from their PDA's. We intend to use GPRS/WiFi and this system involves creating many pages that will be browsed thru hence it will be costly if we user web. I want to cut costs by having a local database on the PDA store the values temporarily then once the user is thru, they upload all that at once.
Is there a posiblity of creating a windows app for the PDA with a dataset that holds the database so that once the user is thru' we upload everything in one sweep!!
Pliz help.
Jus Mee
|
|
|
|
|
maybe its kind of funny...actually i am doing my industrial training...n i ve sent to a c++ developing site...i have a poor knowledge in C++....today i have to convert my system to GUI interface...can anyone suggest me the way to learn this....
|
|
|
|
|
You can use the MFC for that. It's not too difficult to learn.
|
|
|
|
|
ok...where to learn the basics...
|
|
|
|
|
|