|
Thanks,But where should I put messagebox related info to SetWindowsHookEx(...)
|
|
|
|
|
LiYS wrote: But where should I put messagebox related info to SetWindowsHookEx(...)
Put them in the HookProcedure
The prototype for the HookProcedure is
LRESULT CALLBACK HookProcedure(HWND hWnd,UINT uMsg,WPARAM wParam,LPARAM lParam)
You will also have to use these at appropriate places:
CallNextHookEx()
UnHookWindowsHookEx()
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Filtering what inside callback?
|
|
|
|
|
LiYS wrote: Filtering what inside callback?
Use this message : WM_INITDIALOG
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
I have subclass the MessgageBox but with the following winproc the Messagebox onyl display the client area, What wrong?
<br />
LRESULT CALLBACK MessageBoxProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)<br />
{<br />
switch (message)<br />
{<br />
case WM_INITDIALOG:<br />
InitLink(hWnd);<br />
return TRUE;<br />
case WM_DRAWITEM:<br />
DrawLink(hWnd, (UINT)wParam, (LPDRAWITEMSTRUCT)lParam);<br />
break;<br />
<br />
default:<br />
break;<br />
}<br />
return CallWindowProc( oldWndProc, hWnd, message, wParam, lParam );<br />
<br />
}<br />
|
|
|
|
|
See Here[^]
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Its not for hyper link but maybe it is some helpful to you here[^] and here[^]
|
|
|
|
|
Hello,
I have in the same dialog many windows "CWnd" and I use each window to show various informations. Each window is created with WS_CAPTION style to show a titel.
My problem I would like show the border from each window as active all at the same time ! I did't found any style to do that.
Thank you.
AutreChien
|
|
|
|
|
Hi
i got some problem with my code, Acctually i created two threads, a CWnd class calls the fist thread and the fist thread inreturn calls the second thread.
The second thread calls the member function of CAuthen. the second thread calls authen.CheckAuthentication(); in theat member function, i called a dialog using DoModal(); after displaying the dialog, my application gives some
Assertion Error.
can any one tell me where i did wrong.
class CAuthen:: public CWnd
{
............
..
public:
CAuthenDlg auth_dlg;
..
public :
void checkAuthentication();
};
void CAuthen :: checkAuthentication()
{
..
..
..
if( auth_dlg.DoModal() == IDOK)
{
...
// some operation goes here
}
..
..
}
Thanks in Advance.
Gopinath MV
" Don't Sit Like a Rock, Work Like a Clock "
|
|
|
|
|
gloriousgopi wrote: after displaying the dialog, my application gives some
Assertion Error.
What assertion , its showing ? where its taking you in the code?
|
|
|
|
|
|
Debug Assertion Failed!
Program : file path.
File : wincore.cpp
Line : 884
Gopinath MV
|
|
|
|
|
Its not sufficient for answer
|
|
|
|
|
You might mention that this is not with VC++ v6.
"Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi All,
I have created custom log file and its key is added to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\CustomLog. But if I give a path value greater than say 100 characters for File key under CustomLog windows is not taking this path. Is there any restrictions on path length for File key in registry?
C++beginer
|
|
|
|
|
ashokvishnu wrote: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\CustomLog. But if I give a path value greater than say 100 characters for File key under CustomLog windows is not taking this path. Is there any restrictions on path length for File key in registry?
could i know your actual coding syntax
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Re
|
|
|
|
|
Hello all..,
I have to create one socket server application. In which server's prog is written in C Language and is run by CMD prompt..Now i have to develop one client prog by VC++ such that it can call that socket server's prog...
So plz help me!!!!!! that how it can be possible ...and i'm also new to MFC...
Waiting for reply...
alpa shah
|
|
|
|
|
if what u want is to run the exe from the clicent, use ShellExecute.
ShellExecute( 0, _T("open"), _T("c:\\WINDOWS\\system32\\calc") ,0,0,SW_SHOW);
un the place of c:\\WINDOWS\\system32\\calc, put the full path of ur exe.
nave
|
|
|
|
|
Naveen R wrote: ShellExecute( 0, _T("open"), _T("c:\\WINDOWS\\system32\\calc") ,0,0,SW_SHOW);
i believe he want to create Socket Server Program!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Thanks for ur suggestion...I'll surely apply it....
alpa shah
|
|
|
|
|
or you can use ShellExecuteEx
|
|
|
|
|
alpa shah wrote: have to develop one client prog by VC++ such that it can call that socket server's prog...
So plz help me!!!!!! that how it can be possible ...and i'm also new to MFC... '
Run your Socket Server Program on CMD line.. and (If you Know, or Idea about sockets) you have to to create a client program and connect to ip of your computer system and post at which socket server is listening.
if you don't know the ipaddress of your computer you can use loopback ipaddress i.e. (127.0.0.1)
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
hey will you help me... what are the codes to convert numbers to words???
|
|
|
|
|
vansmiles wrote: convert numbers to words
Is it the strings you mean when you say words.
If affirmative, there is a function itoa() that can be used to do this.
If you mean a DWORD value:
A DWORD value is an 32 bit unsigned integer
If WORD:
A WORD is a 16 bit unsigned integer.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
This is a common task ( actually, it's a common homework task, is this homework ? )
Think about what you want to do. Think about how your brain processes it. Then think about how to reproduce that in code.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|