|
deeps_cute wrote: hi i have to get the data displayed in LCD when i clicked a button in mfc. how to do this.
|
|
|
|
|
Sorry but you need to read an article to do this not post here.. start with controlling input ports from lpt and learn about lpt addresses and low/high values
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
I dont know you speak about special monitor or you want to get/set value of a control
|
|
|
|
|
deeps_cute wrote: hi i have to get the data displayed in LCD when i clicked a button in mfc. how to do this.
Do you need help responding to a button click, or displaying data?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
hi,
anyone know how to dislay a table (in .mdb file) in a datagrid using DAO.
Thanks
|
|
|
|
|
try this one.
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
Hi,
What is the difference in creating a CWnd derived or a CStatic derived owner-draw control (e.g. can I handle different messages, are there any limitations)?
I plan to rewrite some of my owner-draw controls (e.g. CStatic based image/text output). It seams for a CWnd based control the user needs to enter the exact class name in the resource editor, while with a CStatic based control the user can simply choose a static type in the resource editor. Thanks for feedback.
/Moak
|
|
|
|
|
In sense of limitations - no difference.
With CWnd you need to do a bit more work, that is register a new window class. With CStatic there is no need in registration as it is already done and called STATIC [as I could remember it correctly].
It seams for a CWnd based control the user needs to enter the exact class name in the resource editor, while with a CStatic based control the user can simply choose a static type in the resource editor.
Yes it is so.
--
=====
Arman
|
|
|
|
|
Thanks, seams I am going to be lazy and will design my owner-draw controls as CStatic derived classes.
/M
|
|
|
|
|
you're probably not knowing that CStatic inherits from CWnd...
|
|
|
|
|
seams I haven't done my homework.... that implies that there is no limitation using a CStatic. thanks
|
|
|
|
|
nope, that implies that inheriting a CStatic will bring you some stuff that CWnd haven't, which you probably don't want in your own control... but all depends what you want to do
|
|
|
|
|
Hi there,
I was wondering and i'd like to know..
How can I add a function to the file properties menu (when you right click a file)?
For example when you have installed Norton, when you right click a file a "scan file with norton" appears..
Anyone knows?
|
|
|
|
|
|
Is there an easy way to fix a path -- so that it matches the filesystem?
"C:\DOCUMENTS AND SETTINGS\PETER" to fix to "C:\Documents And Settings\Peter"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<A HREF="http://www.soonr.com">SoonR Inc.</A>
|
|
|
|
|
What made it all caps in the first place?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
a bug -- it remains a problem because this information got persisted into storage.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<A HREF="http://www.soonr.com">SoonR Inc.</A>
|
|
|
|
|
Never mind - it only works for one folder level!
-- modified at 16:53 Tuesday 1st May, 2007
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
I found a way to fix it:
wstring CPathTools::FixPathToMatchFileSystem( const wstring& path )
{
TCHAR ShortPath[_MAX_PATH];
GetShortPathName( path.c_str(), ShortPath, sizeof(ShortPath)/sizeof(ShortPath[0]) );
TCHAR LongPath[_MAX_PATH];
GetLongPathName( ShortPath, LongPath, sizeof(LongPath)/sizeof(LongPath[0]) );
return _T2W(LongPath);
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<A HREF="http://www.soonr.com">SoonR Inc.</A>
|
|
|
|
|
Cool! Thanks for the update!
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
btw, did you know that windows didn't care about case in folders names ?
in your explorer, just paste C:\DOCUMENTS AND SETTINGS\PETER and see if it doesn't go to C:\Documents And Settings\Peter
|
|
|
|
|
duh.
The software I am working on deals with file synchronization. I scan the disk and I get change notifications -- and I report these to a server that puts them into a database...
Server is happier and faster when file/path names are consistent.
Download soonr.com -- get your files on your mobile phone...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<A HREF="http://www.soonr.com">SoonR Inc.</A>
|
|
|
|
|
Hello all,
I've subclassed a Cedit control just in order to be able to jump to the next control (with WS_TABSTOP) each time the user press the DOWN ARROW and to go to the previous control (with WS_TABSTOP) each time that the user press the UP ARROW.
well I'm using something like this in my subclassed control:
void CTAMEdit::OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags)
{
switch (nChar)
{
case VK_UP:
{
GetParent()->GetNextDlgTabItem(this,TRUE)->SetFocus();
return;
}
case VK_DOWN:
{
GetParent()->GetNextDlgTabItem(this)->SetFocus();
return;
}
case VK_RETURN:
{
FinishEditing();
return;
}
}
CEdit::OnKeyDown(nChar, nRepCnt, nFlags);
} As you can see this is a very easy thing... but when I'm going forward (VK_DOWN) everything goes perfect, but when I'm going backwards (VK_UP) the focus enters into a MSChart that I have as the last control in my taborder. (I mean that the focus should bypass that control as it does when I go forward, but it don't).
Any idea? this is not critical, so I'm not very worried on that, but I'm being curious...
PS: I'm not handling cursor keys in any other place of my application.
As always thank you in advance...
|
|
|
|
|
If the parent window is a dialog, what happens if you use this...
// Move focus to Next
GetParent()->PostMessage(WM_NEXTDLGCTL, 0, 0);
// Move focus to Previous
GetParent()->PostMessage(WM_NEXTDLGCTL, 1, 0);
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
Much better...
And moreover I've seen why this was failing... of course my fault...
I had subclassed two type of controls and one of them was not correctly subclassed.
Thank you for your answer.
|
|
|
|