Forgot your password?
Sign in using
Chapters and Sections
Article Help Forum
Submit an article or tip
Post your Blog
Ask a Question
View Unanswered Questions
View All Questions...
All Message Boards...
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work & Training Issues
Design and Architecture
C / C++ / MFC
ATL / WTL / STL
Ruby On Rails
Hardware & Devices
Hosting and Servers
Silverlight / WPF
Site Bugs / Suggestions
The Insider Newsletter
The Daily Build Newsletter
The Insider News
The Weird & The Wonderful
Most Valuable Professionals
General Indian Topics
General Chinese Topics
What is 'CodeProject'?
Ask a Question
Bugs and Suggestions
Article Help Forum
Advertise with us
Comments by PJ Arends (Top 24 by date)
IMO using sounds is not an effective way, especially if you are validating in EN_UPDATE as the control maybe in an invalidate state while the user is typing and constant beeping would be really annoying.
A for a visual indicator things I have done include changing the background colour or border colour. Also disabling the OK button until everything is valid is a possibility as long as that does not hold up your users productivity. Sometimes it is better to allow invalid data so the work can be saved in order to get back to it later.
Use std::vector< myclass>;
Yes, that is where the
flag comes in. It is used to prevent just this problem.
I should also add, that the only the top left cell in the demo grid has this functionality, the rest of the cells are simple text edit controls.
The validating is done in
This function handles the EN_UPDATE message. This message is generated by the edit control just before it displays the text. What I did is validate the text in the control, and if it is not valid I restore the last previously valid text. This way it does not matter what is typed into the edit control, it will just appear to the user that all invalid text is rejected.
The tricky part for you now is that the CInPlaceNumEdit class works in concert with the CGridCellNumeric class. When the user finishes editing it ends up calling CGridCellNumeric::SetText() with the user entered text, which in turn calls CGridCellNumeric::Format() to format the final text in a locale specific format.
That should now be as clear as mud. Just look at CInPlaceNumEdit::OnUpdate and CGridCellNumeric::Format()
IE9 totally failed multiple times to get it, but I did manage to get it using Firefox. Thanks for the information about the file size, exactly what I needed.
These are messages sent by the windows OS to your applications window.
Not enough information.
What brand of mobile device? Did you check with the manufacturer?
Did you check your network settings as the error message suggested?
Does the device connect normally when not using your code? are other programs successful at using it?
If you did the above then post the relevant code so we can see what you are doing.
There are many ways to skin this cat, using events and WaitForMultipleObjects etc. Either way it is always a good idea to use thread synchorization to avoid deadlocks, even if it is DIY.
Then look at TextOut, DrawText, ExtTextOut, TabbedTextOut etc.
mov ah, 09h
depends on what you want to do and what you want to output your data to.
Yes it is lacking. Using "check screensaver running" I was able to find that I just need to use the SystemParametersInfo function and specify the SPI_GETSCREENSAVERRUNNING parameter.
Thanks for the tip.
Now it is time to go to bed and recharge the brain.
See my article
unicode / non-unicode conflict. use the the neutral _tcsspn version or the unicode wcsspn version. Or better yet, use the function suggested by SoMad.
The Control Panel has a setting (Power Options - System Settings) where one can choose what the Sleep button does. I can change it to 'Do nothing' and the Sleep button becomes disabled.
It does not require a reboot to do it this way, so it must be either a registry setting or a power management function (see http://msdn.microsoft.com/en-us/library/windows/desktop/aa373163(v=vs.85).aspx) that is used. Not sure which one.
I followed your link and was able to disable the Windows key, but I was unable to disable the sleep key via key mapping. The only problem is the windows key functionality is now totally disabled, not quite what I was looking for.
Thanks for the info, I may end up doing it this way. Although I was hoping to be able to disable these keys only when my app is running. Your solution involves editing the registry and rebooting the machine. Not quite what I had in mind.
The problem (as stated earlier) is that the Sleep and Win+L keys have their default actions taken before my hook procedure is called. So my hook procedure can not filter them out and catch them, thus blocking their default actions.
Seen that, tried that, could not get it to work for some reason.
Thanks a bunch, works perfectly :)
What is the code for the GetFileList function?
Tried it, and it works! Thanks
<pre>HRESULT hr = FileDialog2Ptr.CoCreateInstance(CLSID_FileOpenDialog);</pre>
The link you gave talks about IFileDialog, IFileSaveDialog, and IFileOpenDialog. These were new in Vista. The MSDN link I gave above is for IFileDialog2 that is new in Win7. I got the older ones to work just fine, but I want the functionality of IFileDialog2 where I can limit the scope with SetNavigationRoot().
Thanks, works now. Kind of a weird solution though.
Web02 | 2.8.140827.1 | Last Updated 1 Jan 1900
All Rights Reserved.
Terms of Service