|
use these messages inside editbox (inherited from CEdit).
that is, hWnd is the editbos, not dialog.
includeh10
|
|
|
|
|
I don't get it. How can I treat the messages in the editbox? Should I use again the WindowProc funcion? I'am asking because it doesn't have a HWnd parameter.
LRESULT CTestDlg::WindowProc(UINT message, WPARAM wParam, LPARAM lParam)
|
|
|
|
|
Instead of GetKeyState(VK_CONTROL) try GetAsyncKeyState(VK_CONTROL)& 0x8000
Also, the other message is correct. The dialog gets keystrokes unless another control which ACCEPTS keystrokes has focus. So, you can derive from the CEdit and place special CEdit controls on your window that watch for CTRL+D
|
|
|
|
|
I am Using a singleton server(ATL Simple Object as an .exe, with Connection Point Support and dual interfaces ) with one custom interface and an external Dispatch events to return data to clients who Implement IDispEventImpl
Where in my server code can i know
1) The number of active clients
2) The event when the server has a new client
Thank you
Engineering is the effort !
|
|
|
|
|
Hi,
I would search a library / activex o SDK tools for developer a program in Visual C++ that permit cut and paste and write of result of mp3 audio file.
For example. i take a song and extract from 10th second to 30th second and write a new file in specific format.
Who i can make ?
Thanks
Hi.
I'm new developers
|
|
|
|
|
|
I'me very new in c++ and I've downloaded the CxImage library. Is there anything I can read that will tell me step by step how to use it?
|
|
|
|
|
Just pointing out the obvious, but the only guide you'll get is the CxImage article itself.
I use CxImage in my applications(s), and its pretty simple. Just pay attention to the Load
and Draw methods.
Iain.
|
|
|
|
|
take a look in the cximage documentation, and watch the guy's source code of his demo projects.
i think its site is www.xdp.it/cximage or something (search on google if this is wrong), you find the documentation and help forum somewhere on the site.
success (it's not so hard, trust me )
|
|
|
|
|
How can I write a function i a .dll that returns a value(sends value to application in VB) when its called inside the .dll?
example - a parameter(in the .ddl) changes value and we want to notify the application right away!
|
|
|
|
|
Pass application window handle to a dll and when value changes send a message to this window, passing value that has changed.
Is it a primitive type?
JohnCz
|
|
|
|
|
Hello gurus,
I would like to know how I can create and use a timer object in a CObject derived class? My class is not derived from CWnd , so I don't know how I can use a timer inside a CObject derived class. Does any body knows how to do it?
Thanks for the help.
Best regards.
There is no spoon.
|
|
|
|
|
Use this API SetTimer, instead of providing a window handle you provided a call back function.
This callback function can be a static function in ur class, But i dont know how you can use it for multiple instances of ur object.
-prakash
|
|
|
|
|
As Mr Prakash points out, you could use:
class CMyObject : public CObject
{
...
void SetMyTimer ()
{
....
SetTimer (NULL, 0, m_dwDelayInMilliseconds, MyTimerCallBack);
....
}
static VOID CALLBACK MyTimerCallBack ( HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime )
{
}
);
but if you read the docs, you'll find none of the parameters can be used to identify *which* CMyObject
needs to be dealt with.
The other option is to use SetWaitableTimer...
class CMyObject : public CObject
{
CMyObject ()
{
m_hTimer = CreateWaitableTimer (NULL, TRUE, NULL);
}
~CMyObject ()
{
CancelWaitableTimer (m_hTimer);
CloseHandle (m_hTimer);
}
...
void SetMyTimer ()
{
....
SetWaitableTimer (m_hTimer, &lintDelay, 0, &MyTimerCallBack, this, FALSE);
....
}
VOID CALLBACK MyTimerCallBack( LPVOID lpArgToCompletionRoutine, DWORD dwTimerLowValue, DWORD dwTimerHighValue)
{
CMyObject *pThis = (CMyObject *)lpArgToCompletionRoutine;
pThis->MyTimerCallback ();
}
void MyTimerCallBack ()
{
...
}
);
Tada!
Just as well I'm avoiding doing real work, eh?
Iain.
|
|
|
|
|
Nice one.
Thanks.
-prakash
|
|
|
|
|
Hello people,
I was wandering if you could give me some advice which collection to use.
In my MFC application I'm reading a CSV file, but I don't know how many columns a row has got. I would also like to store different datatypes in my collection.
In C# I realised this with a 2 dimensional Arraylist, but I don't think there is an MFC equivalent, is there?
Regards,
Paul
I would like to have a funny signature
|
|
|
|
|
|
You're asking me?
I can try.
|
|
|
|
|
I think it was presented as a confirmation rather than an outright question. Sort of like asking "How about a list of lists?"
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Hai ...everybody can any body help me for socket programming using multithread.
shan
|
|
|
|
|
<title>
this is a simple html file. must be specified a file url.so the file must be found at local drive or a remote url.
my question is that if I load an image file into memory,how can I show the html correctly in the browser with the image src loaded from momeory?
Thank you all very much.
Thank you all very much.
Thank you all very much.
Thank you all very much.
|
|
|
|
|
if you are generating the html and giving it to the browser, one suggestion is that you write the image to a file and put it in the src attribute.
What is that ?
-prakash
|
|
|
|
|
Do you have to display the bitmap in a browser? Or are you using an embedded web browser control?
If it's the latter, consider using Eugene Pustovoyt's excellent CPPHtmlStatic[^] control instead and use the <bmp handle=""> tag to display your bitmap.
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
Thank you.
But I mean this is a html file. must be specified a file url.
Actually, the file must be found at local drive or a remote url.
but now,
my question is that if I already have the img file loaded in memory,
how can I show the html correctly in the browser(microsoft webbrowser control) which load the image directly from memory not the file on local drive?
|
|
|
|
|
Anyone plz help me out with how to decrypt a string in vc++ urgently?
|
|
|
|