|
Does anyone of you know how to develop a tool like tcpview(by sysinternals.com)? My requirement is to not just listing (as in TCPview) but to monitor and end a process before it actually starts. For example, i want to filter all applications passing through port 80 except Internet Explorer. so if some clicks any pdf file on Internet, he will not be allowed to do so? how do i proceed? i m really clueless and need some ideas.
Thanking u,
|
|
|
|
|
hai,
thanks Alok , i use the message map macro ON_COMMAND_RANGE( ...)
the above gives only the single mouse lclick funtions.. can u give the remaining for double click and left and rigth mouse clicks.. and mouse moves.
i want other macros that give the id of button , which will be invoke when user double click on the ranged buttons. need help ,,
thanks in advance ...
Surya prakash.
|
|
|
|
|
adarisurya@yahoo.co.in wrote:
can u give the remaining for double click
Look For these messages in wNotifyCode of ON_COMMAND_RANGE
BN_DBLCLK : For Button Double Click
adarisurya@yahoo.co.in wrote:
i want other macros that give the id of button , which will be invoke when user double click on the ranged buttons. need help ,,
wParam
The low-order word contains the button's control identifier. (USE LOWORD macro here)
The high-order word specifies the notification message.
(USE HIWORD macro here)
lParam
Handle to the button
"I Think this Will Help"
Alok Gupta visit me at http://www.thisisalok.tk
|
|
|
|
|
Does anyone of you know how to develop a tool like tcpview(by sysinternals.com)? My requirement is to not just listing (as in TCPview) but to monitor and end a process before it actually starts. For example, i want to filter all applications passing through port 80 except Internet Explorer. so if some clicks any pdf file on Internet, he will not be allowed to do so? how do i proceed? i m really clueless and need some ideas.
Thanking u,
|
|
|
|
|
First Show You Identity.
Then ask your question.
Why People Don't Show there Identity while asking Question.
Is asking Question harm there Respect.
"I Think this Will Help"
Alok Gupta visit me at http://www.thisisalok.tk
|
|
|
|
|
Ok.. i have not registered to code-project. will register now itelf and resend the mail. my mail was not in anyway trying to hurt any1. if i violated the etiquttes of the group, then i am sorry.
|
|
|
|
|
Anonymous wrote:
then i am sorry.
I do not mean that, no need for Sorry, but I just want to convey if you post by Identity, you will get better Response from other user.
Anonymous wrote:
if I violated the etiquettes of the group
That depends upon the Group Moderator
Anonymous wrote:
i have not registered to code-project.
Go and register, its free.
"I Think this Will Help"
Alok Gupta visit me at http://www.thisisalok.tk
|
|
|
|
|
Friends,
I've CListCtrl on the dialog. I am getting huge amount of data from network that i am displaying in this ListControl (Report Style).
Now, i want that whenever new item is added, the CListCtrl should automatically scroll down to show the latest added item. How can i do so.
Imtiaz
|
|
|
|
|
|
Hi!
Plese tell me that in which function do i need to pass LVM_ENSUREVISIBLE
|
|
|
|
|
use this macro ListView_EnsureVisible if in win32/MFC both or
use LVM_ENSUREVISIBLE in ClistCtrl::Create if using MFC
"I Think this Will Help"
Alok Gupta visit me at http://www.thisisalok.tk
|
|
|
|
|
ThatsAlok wrote:
use LVM_ENSUREVISIBLE in ClistCtrl::Create if using MFC
LVM_ENSUREVISIBLE is a message not a style.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
|
in my application i have used MS-access database to log events. Now i want to automatically rotate the log. i.e after a week say the log should be backed up. and then after some time deleted. how do i do it?
|
|
|
|
|
two options
1) have another DB file and when the time is up, copy all the recordsets from the current to the backed up
and empty the current
2) import an empty database in ur Exe and when the time comes copy the DB to DBBkup directory and spit out the empty DB from the Exe File (FindResource will help)
C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg
|
|
|
|
|
hi,
i want to delete the database evrery monday morning. how do i do it? can u give me some link
|
|
|
|
|
One way would be to put del ...\mydatabase.mdb in a batch file and create a scheduled task that would run the batch file every Monday. Other ways exist, too.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
hi all,
I want to set the WindowSize of MFC Dialog..(800 pixel width and 600 pixel height)..What is the way to do it?
If any one know this,please reply me..
Thanks in advance..
|
|
|
|
|
See SetWindowPos() and MoveWindow() .
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
Hi all:
What messages my application get when I click the system staskbar consecutively such that the dialog can get minimized and maximized!
Thanks
|
|
|
|
|
|
Hi all:
I used the DrawText() to output several lines of text within a rect, but with the font I created
VERIFY(m_Font.CreateFont(
12, // nHeight
0, // nWidth
0, // nEscapement
0, // nOrientation
FW_NORMAL, // nWeight
FALSE, // bItalic
FALSE, // bUnderline
0, // cStrikeOut
ANSI_CHARSET, // nCharSet
OUT_DEFAULT_PRECIS, //nOutPrecision
CLIP_DEFAULT_PRECIS, //nClipPrecision
PROOF_QUALITY , // nQuality
DEFAULT_PITCH|FF_SWISS, //nPitchAndFamily
_T("Arial"))); // lpszFacename
the text appears two crowded vertically, I know with a internal leading, the text can be looked good. But the question is how to add a internal leading?
|
|
|
|
|
IIRC SetTextMetrics might help
C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg
|
|
|
|
|
Thanks for your answer. But where can I get reference for this SetTextMetrics, I can't find it in the MSDN?
|
|
|
|
|
I've managed to get myself a copy of Jeffrey Richter's Programming Applications for Microsoft Windows (4th Edition), but it doesn't have the source code CD.
Can anyone provide me with a Zipped up copy of the CD's contents please ?
|
|
|
|