|
An eye for an eye will only make the world blind...
But only if they recurse, otherwise the entire world would be half-blind
|
|
|
|
|
Instead of InvalidateRgn use RedrawWindow.
It can invalidate non client area.
|
|
|
|
|
Thank you so very much! That is just what the GUI Doctor ordered
This is what seems to work well enough.
<br />
HWND hWndDesktop = ::GetDesktopWindow();<br />
<br />
RECT rBounding;<br />
..set rBounding to rectangle in 'screen' coordinates that needs to be erased...<br />
<br />
::RedrawWindow(hWndDesktop, &rBounding, NULL, RDW_INVALIDATE|RDW_ERASE|RDW_ALLCHILDREN);
I can definitely see that the entire screen is not being repainted!
|
|
|
|
|
IIRC, invalidating a specific rectangle, windows will automatically setup a clipping region for you.
--
Schni Schna Schnappi! Schnappi Schnappi Schnapp!
|
|
|
|
|
I'm developing an in house application, and I want the user to be able to pause a journal file when it is being played back, by the using pressing PAUSE and resuming playing by pressing PAUSE again.
I have set hooks for journalrecord and journalplayback, and they both work ok, it would seem that once started to play a journal file cannot be paused, but can be stopped using ctrl+alt+del.
I'm using VC++ 6.0.
Any help would be much appreciated.
Phil
|
|
|
|
|
This[^] article might help you (look for the Other Considerations section). Windows sends a WH_CANCELJOURNAL message when you press Ctrl+Alt+Del or Ctrl+Esc. You need to monitor that and then store the current state somewhere. When the user hits Resume, you'd have to install the hook again and start playback from the stored state.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
WinMacro rocks! Thanks for making the source available.
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
|
i have a class which has partly implement the IDataObject interface.
i don't know how to finish the GetData(...) method
what should i do in it so it can support text copy/paste?
|
|
|
|
|
Hey all.
On my main dialog I have created a property sheet and added a couple of property pages to that sheet. I have a menu on the dialog that allows you to select options. I have an event handler in the main dialog that handles the clicking on those particular option buttons. What I want to be able to do is from the main dialog button event, send a message to one of the property pages telling it to do something (in this case, it would send a message saying "Refresh your view now"). I'm not really sure how to go about doing this. If anyone could enlighten me I would really appreciate it.
TIA
Shultas
|
|
|
|
|
Well... You could use PostMessage or SendMessage with a custom (WM_USER) message to transfer the data in windows messages. But surely you have a set of objects for your property pages declared somewhere in your dialog or propery page. So can't you just define a function in the class of the property page, and then call that from the parent dialog?
Joel Holdsworth
Wanna give me a job this summer?
Check out my online CV and project history[^] - now available in MSWord format![^]
|
|
|
|
|
Anyone care to make some money? I need the following written in C++ for a class that I hate.
Modify the mortgage program to input the amount of the mortgage, the term of the mortgage, and the interest rate of the mortgage. Display the mortgage payment amount. Then, list the loan balance and interest paid for each payment over the term of the loan. On longer-term loans, the list will scroll off the screen. Do not allow the list to scroll off the screen, but rather display a partial list and then allow the user to continue the list. Allow the user to loop back and enter new data or quit. Insert comments in the program to document the program. This program should still be a procedural C++ program.
|
|
|
|
|
write your post as a logged guy, and we'll talk about it then
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Anonymous wrote:
I need the following written in C++ for a class that I hate.
But that does not absolve you from knowing what a mortgage is and is not. A mortgage is a transfer of rights to a piece of property. Now if you are wanting to calculate a loan's principal, interest, term, or monthly payment, you might stand a better chance of receiving assistance.
See if any of these sites help:
http://www.projectslist.biz/freelance/Java/java-program/
http://www.getacoder.com/projects/mortgage_applet_14839.html
http://seul.org/~jennifer/University%20of%20Phoenix_407A.doc
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
Anonymous wrote:
Anyone care to make some money?
How Much ???;P
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
hi
i am working on directshow, but i dont have dshow.h header file.
i dont know from where to download it to carry my work.
can anybody help me out from this problem?
thanx...
|
|
|
|
|
hi,
i am using scrollbar in my class derived from CView. But the horizontal scrollbar is not appering. When i use the statement
SetScrollInfo(SB_VERT, &si, TRUE);
SetScrollInfo(SB_HORZ, &hi, TRUE);
in the OnSize function even the vertical scrollbar disappers and appears only after resizing the window.
Can anybody tell what is the problem.
Thanks.
|
|
|
|
|
Try :
SetScrollSizes(MM_TEXT, sizeTotal, sizePage, sizeLine);
in OnInitialUpdate() function.
Alex
|
|
|
|
|
Hi,
LX my class is derived from CView and i am using the Scrollbar by setting the window style in preCreatewindow as
cs.style |= WS_HSCROLL|WS_VSCROLL;
So i can,t use SetScrollSizes function.
|
|
|
|
|
Hi,
I am using FtpFindFirstFile with the search path as "/gfg/mmm/bn" but the LPWIN32_FIND_DATA variable is not giving the correct directory attribute though it is working Correctly when i am giving the search path as "/gfg/mmm".
Thanks.
|
|
|
|
|
Hello all
I need to capture the events of the main menu of an application (Doc/View with a single view). I mean that menu with "File", "New", and so on. I have to know when the cursor is over each element of the menu (both mouse or keyboard cases), in order to inform the user about that fact (it is for blind people). In this way, when the focus is over "File" I will say "File" to the user, and so on.
Any hint about how can be done?
Thanks
|
|
|
|
|
|
Is it only their libraries, or is there something more fundamental?
Thanks for any insight in this matter.
William
Fortes in fide et opere!
|
|
|
|
|
managed C++ (MC++) is a pure Microsoft product acording to his .NET framework.
C++ is only a language, that has a standard (grammar, lexical rules, etc...) on whick is based Visual C++ to allow you to write managed code.
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
MC++? If you mean "Microsoft Visual C++", then:
ANSI C++ is a standard for the C++ Programming Language.
That means: Almost all C++ compilers are ANSI C++ - compliant (or at least claim to be), but most compilers also offer "extensions".
These "extensions" are differ by vendor. Microsoft, for example, offers the might "Microsoft Foundation Classes" (MFC) which can be used for "easier" design of Windows Applications.
Short: Microsoft Visual C++ "contains" C++
Cheers,
Sebastian
--
Contra vim mortem non est medicamen in hortem.
|
|
|
|