|
Hello all,
I was wondering if anyone can tell me how can I read the file names of a set of files that are dropped on my drop target simultaneously.
Thanks.
|
|
|
|
|
|
In my MFC program, I use the OnKeyDown() function to capture single keystrokes, such as the Delete Key, as below
void CDlgMain::OnKeydownLvwMain(NMHDR* pNMHDR, LRESULT* pResult)
{
LV_KEYDOWN* pLVKeyDow = (LV_KEYDOWN*)pNMHDR;
if(pLVKeyDow->wVKey == VK_DELETE)
DeleteAListViewItem();
}
My question is, how do I capture keystroke combinations using the Control Key and a letter key (specifically CTRL-A)? I need this, so I can include "select all" functionality in a list view. I know you can check the status flag for ALT, but there is no flag for CTRL.
|
|
|
|
|
GetAsyncKeyStatus(VK_CONTROL). The trick is to call it then check it, like this:
GetAsyncKeyStatus(VK_CONTROL);
if (GetAsyncKeyStatus(VK_CONTROL) && <insert check="" for="" a="" down="">)
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
|
|
|
|
|
[ccode]
GetKeyState(VK_CONTROL) < 0 ? it's down : it's up
[/ccode]
|
|
|
|
|
Hi, all!
Does anyone of you know where I can get the C++ source codes for an algorithm named "Subspace iteration", which is mainly for the calculation of eigenvalues and eigenvectors.
Thank you very much for your help!
Jeffrey
|
|
|
|
|
- How to read C++ in English? "C plus plus" or "C double plus"?
- Still a question, how to read "Windows 2000"? "Windows two thousand"?
- Can you help?
- Regards,
Maer
|
|
|
|
|
Who on earth says C double plus ? How else would you say Windows 2000 ?
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
|
|
|
|
|
C double plus is doubleplusungood
--Mike--
http://home.inreach.com/mdunn/
If there's something strange / in your VC code / Who you gonna call? / Ghostbusters!
your with and
|
|
|
|
|
- Thanks pal!
- I want to know how you read it? "C plus plus"?
- Can you help?
- Regards,
Maer
|
|
|
|
|
- Thanks pal!
- A fellow told me today when VOA says "C++", it is often pronounce as "C double plus". So I am puzzled.
- I do not know how to read is popular.
- Can you help?
- Regards,
Maer
|
|
|
|
|
I'm not sure you've asked me another question ?
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
|
|
|
|
|
- I just want to know how to read is correct. I think yours is correct. So I ask for your pronunciation. : )
- Regards,
Maer
|
|
|
|
|
C++ = "C plus plus"
Windows 2000 = "Windows two thousand"
Hope this helps.
|
|
|
|
|
C plus plus. Most programmers I know say "win 2K" or just "2K" when referencing Win 2000.
--Mike--
http://home.inreach.com/mdunn/
If there's something strange / in your VC code / Who you gonna call? / Ghostbusters!
your with and
|
|
|
|
|
Maer727 If you concentrate on naff stuff like this in a section about C++ programming techniques then I;m afraid there's not much hope for you in programming.
Concentrate on the real work and leave the nonsense behind.
We do it for the joy of seeing the users struggle.
|
|
|
|
|
- Thanks for your suggestions, Rassman pal!
- I am not a native speaker of English speaking country, so there is often trouble when dealing with some special words about C++ with native speaker of English.
- Have a nice weekend,
Maer
|
|
|
|
|
- In MSDN(Ti:SystemParametersInfo), it is said "fWinIni ... This parameter can be zero if you don't want to update the user profile or broadcast the WM_SETTINGCHANGE message ... ".
- I do not know what means "user profile" here.
- Can you show me an example?
- Regards,
Maer
|
|
|
|
|
I've understood that all the minimized windows can be grouped into a single bar, called taskbar just like the windows taskbar, but i don't know how can i make that the minimized windows don't have the restore button, and all the rest. So my question is how, can i build a taskbar into an app?, using the doking windows?, or how?
|
|
|
|
|
- In MSDN (Ti: NONCLIENTMETRICS), first paragraph, it is said "The NONCLIENTMETRICS structure contains the scalable metrics associated with the nonclient area of a nonminimized window. "
- I do not know what means "scalable metrics" here.
- Can you show me an example?
- Regards,
Maer
|
|
|
|
|
Here is my problem! I have three classes set up sort of like this:
class MainClass
{
CSocketClass * pSock; // instance of my socket class.
}
class CSocketClass
{
CSocketAddr * pObj;
};
class CSocketAddr
{
operator LPSOCKADDR()
{
return ( LPSOCKADDR )( LPSOCKADDR_IN )this;
}
}
When I call my MainObject->pSock->bind() [which uses my LPSOCKADDR override] and try to do some binding, the pointer this does not refer to the class I called it from, it points back to my main object! That is bunk! When I say "this" I want the class I am calling in. Is it just me?
Peace.
----
Xian
|
|
|
|
|
What does you bind function look like?
Todd Smith
|
|
|
|
|
void XSocket::bindAddress()
{
if( ::bind( m_hSocket, ( LPSOCKADDR )m_pAddress, sizeof( SOCKADDR ) ) == SOCKET_ERROR )
throw "bindAddress";
}
Well, not anymore...
I got around this by not overloading operators and calling member funcs explicitly. It still p1ss3s me off though! I think the "this" pointer within a class should reference the class it is within.
Peace.
----
Xian
|
|
|
|
|
I've Created a Internet Explorer Bar using vc 6.0.My project can run smoothly in Windows 2000,But in Windows Me,When I close IE,It will popup a error message which said "Iexplore have unknown error,will closed".
In my project,I use a MFC regular dll writed by myself,this dll has been tested ok.
Who can tell me what's the possible mistakes in my project?
|
|
|
|
|
The first one would be using Windows2000 api methods not available in Windows ME.
Cheers,
-Erik
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
My thoughts are my own and reflect on no other.
|
|
|
|