|
Bret,
I steered you wrong. The reason MOUSEMOVEPOINT is not available is because GetMouseMovePointsEx is a Win2000/Me API call. You would have to get the latest Platform SDK, but I suspect you would not want a solution for just those 2 operating systems.
OK, well, this is more complicated, but you will have to do a Windows system hook to capture the mouse messages sent to the desktop. Take a look at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnmgmt/html/msdn_hooks32.asp
CodeGuy
The WTL newsgroup: 860 members and growing ... http://groups.yahoo.com/group/wtl
|
|
|
|
|
Thanks for your help.
Bret Faller
Odyssey Computing, Inc.
|
|
|
|
|
Does anybody know any free RIFF file parser?
Not for any special RIFF sub-format, but one that can make the job of loading different RIFF files easier - in C++ preferrably
Thanks,
Erik
|
|
|
|
|
I have tried to mail Dundas because they have disruptet Hyperview Studio information from their web site. Actually I bought life time support and updates to this product a years ago. I cant even get access to the FAQ they provided before
I mailed twice to hear what happened, but not even a reply.
One thing is to sell life time upgrades a year before the product dies, not to answer questions about it seems for me to be bad bad.
I also used to buy Ultimate Toolkit with updates every 14 days. But without any notice they stopped this service. Today I cant even get any information about errors ... updates ..
Is it only me, a fault or .....
Jørgen Granborg Denmark
|
|
|
|
|
How can I change the text color in a cedit depending on what was entered.
i do have an onctlcolor function that inits the color when the dialog opens but i can not seem to call the function after the load of the dialog? I did create a sendmessage but i am not sure what the params should be. I have found quite abit of info on the onctlcolor function but nothing on how to call it.
|
|
|
|
|
How can I change the text color in a cedit depending on what was entered.
i do have an onctlcolor function that inits the color when the dialog opens but i can not seem to call the function after the load of the dialog? I did create a sendmessage but i am not sure what the params should be. I have found quite abit of info on the onctlcolor function but nothing on how to call it.
|
|
|
|
|
How can I change the text color in a cedit depending on what was entered.
i do have an onctlcolor function that inits the color when the dialog opens but i can not seem to call the function after the load of the dialog? I did create a sendmessage but i am not sure what the params should be. I have found quite abit of info on the onctlcolor function but nothing on how to call it.
|
|
|
|
|
OnCtlColor is one of a series of calls that will get made in response to a WM_PAINT event being fired. So how would you programmatically send an WM_PAINT to your CEdit? Call the Invalidate member function; this is available since CEdit derives from CWnd. This will force your edit control to be redrawn.
CodeGuy
http://groups.yahoo.com/group/wtl
|
|
|
|
|
very nice and easy. thankyou
|
|
|
|
|
I have created an object of my own class which is derived from the class "CToolBarCtrl". But I do not know how to show the object as a new toolbar in the frame window and how to attach a resource to my object. Please help. Thanks.
Maer.
|
|
|
|
|
You should derive your class from CToolBar, not from CToolBarCtrl. CToolBar is designed to integrate into frame window architecture (docking/floating stuff).
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
Thanks for your reply.
I find your reply very useful. I follow your methods, but still have a trouble.
Here is my codes:
//newtoolbar is a class member of the View class
//based on a MDI program
//"IDR_TOOLBAR1" is the resource id of the newtoolbar.
newtoolbar.Create(WS_CHILD|WS_VISIBLE|CCS_TOP,CRect(0,0,100,100),(CMainFrame*)(AfxGetApp()->GetMainWnd()),IDR_TOOLBAR1);
newtoolbar.ShowWindow(SW_SHOW);
When running the program, the origin toolbar disappears and nothing is diaplayed in the origin toolbar position.
How to resolve the porblem?
Thanks.
Maer
|
|
|
|
|
What happens if you change the 'newtoolbar' variable type to CToolBar?
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
Thanks for your reply.
Your method really works well. Here is my source codes:
//my program is based on MDI
newtoolbar.Create((CMainFrame*)(AfxGetApp()->GetMainWnd()),WS_CHILD | WS_VISIBLE | CBRS_TOP,NEWTOOLBAR);
newtoolbar.LoadToolBar(IDR_TOOLBAR1);
((CMainFrame*)(AfxGetApp()->GetMainWnd()))->RecalcLayout();
//where NEWTOOLBAR is the ID of the toolbar window,
//newtoolbar is a data class member of the "View" class,
//"IDR_TOOLBAR1 is" the resource id of the toolbar resource
Thanks again.
Maer
|
|
|
|
|
Ive been wanting to start becomming a better coder.
THere is so much out there and even on this site, im confused as to where even to start!
Ive bought books one C and read tutorials, and I am fairly familiar to c/c++, but when it comes to actually making something worthwhile, other than those stupid printf("hello world!\n");
things then i dont know where to start.
...
|
|
|
|
|
There are so many places you can go - are you wanting to write console programs rather than Windows ones ? If not, then you need to get a good book on MFC. What you probably need to do is decide what sort of program you will write, choose something simple and then learn whatever you need to get it done.
Christian
As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.
Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
|
|
|
|
|
How to show a window in full screen?
Thanks.
|
|
|
|
|
Not too hard. Look at the documentation for CreateWindowEx. For window styles, pass WS_POPUP | WS_VISIBLE. For the window width and height, give it the width and height of the entire screen. You can call SetWindowPos to get it positioned at 0, 0. The window will occupy the entire screen.
|
|
|
|
|
Also, more simply, use WS_MAXIMIZE for your window style.
CodeGuy
http://groups.yahoo.com/group/wtl
|
|
|
|
|
If you want your mainframe class to go fullscreen (like VC++ IDE does), check the KB article Q164162.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
Thanks for your reply.
I find the method you introduced to me works well. But I still have a question, that is, how to show a window maximized but not covering the task bar.
Thank again.
Maer
|
|
|
|
|
Hello...
I have to read a txt file (a csv file) and qhen I read one by one field, I can find fields that have different type (long, string, date etc...). So how can I do to convert a string that represent a date in a real date object?
Thanks to all You
Alessio Bulleri
a.bulleri@metodoshoes.it
norbland@lycos.it
|
|
|
|
|
If you are using MFC, you can use COleDateTime. It has a ParseDateTime function you can use to extract a date from a string.
|
|
|
|
|
thanks, You saved me ?????? (and in a very very quickly way and time)
Thanks
Alessio Bulleri
a.bulleri@metodoshoes.it
norbland@lycos.it
|
|
|
|
|
My program is not made to handle the "Large Fonts" option in Windows, and therefore when this options is used, things don't appear in lists and so on (Because the list sizes are fixed, and noscroll is enabled). Is it possible to force the font to a spesific size? I want the app to use "MS Sans Serif", size 8 no matter what the windows settings are...
Sprudling
|
|
|
|