|
for simple child controls, override parent CWnd's PreTranslateMessage().
BOOL CMyWnd::PreTranslateMessage(MSG* pMsg)
{
BOOL b = CDialog::PreTranslateMessage(pMsg);
if(pMsg->message == WM_LBUTTONDOWN)
{
if(pMsg->hwnd == m_edit.GetSafeHwnd())
MessageBox("Edit control);
}
return b;
}
if you need to get mouse click on edit field of combo box, or scroll bar of list box, i think you have to to subclass them.
|
|
|
|
|
Please try it :
BOOL CYourParentWnd::OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult)
{
*pResult = 0;
NMHDR* pHeader = (NMHDR*) lParam;
switch (pHeader->code) {
case NM_CLICK:
{
CWnd* pcChild = CWnd::FromHandle(pHeader->hwndFrom);
}
break;
}
return FALSE;
}
They sought it with thimbles, they sought it with care;
They pursued it with forks and hope;
They threatened its life with a railway-share;
They charmed it with smiles and soap.
|
|
|
|
|
are you sure that WM_NOTIFY will be sent to parent window by all controls on mouse click?
|
|
|
|
|
No, I am not sure for "all" controls...
...but I would test it in the author's context
They sought it with thimbles, they sought it with care;
They pursued it with forks and hope;
They threatened its life with a railway-share;
They charmed it with smiles and soap.
|
|
|
|
|
|
If you can, please leave a contact。
I want to be a hacker, how should I do?
I do not want to engage in sabotage, just interested in the Trojan Programming.
|
|
|
|
|
???
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
Mr_Leon wrote: I want to be a hacker
Well you will not be very popular here.
Just say 'NO' to evaluated arguments for diadic functions! Ash
|
|
|
|
|
Have you studied this[^]? I think they managed rather well.
|
|
|
|
|
Mr_Leon wrote: If you can, please leave a contact。
I want to be a hacker, how should I do?
I do not want to engage in sabotage, just interested in the Trojan Programming.
For starters, not beg. Hackers do it on their own.
...byte till it megahertz...
|
|
|
|
|
Hide your process, and then search user's info such as bank account to your mail inbox.
|
|
|
|
|
I'm from China。
Email:7841559@qq.com
|
|
|
|
|
Hook 去看雪论坛 一堆堆搞Hook的
学英语 去新东方
|
|
|
|
|
ignor d dwn votes brohter
|
|
|
|
|
Hi,
I have read your article about "Rendering GIF, JPEG, Icon, or Bitmap Files with OleLoadPicture".It's very interesting. But I have some problems about it.If the Windows are maximized,the picture showed in the STATIC would be erased.
Could you provide the code?My email address is nalang@163.com.
Thanks.
|
|
|
|
|
[1]Make the picture storing object, might be instance of CBitmap, accessible all the time by making it as data member of class.
[2]Do the painting operation in ::OnDraw(SDI\MDI Application) or ::OnPaint(Dialog based Application)
Sameer();
|
|
|
|
|
post this in the discussion area under the article you read.
|
|
|
|
|
Hi,
I have a CPropertysheet containing a number of property pages and I would like to initialize all of the porpertypages at the same time (e.g. in the CPropertySheet::OnInitDialog()) rather than initialize each one as the user selects the tab. I am sure there used to be a way to do this 'early' initializing but I cant find anything about it.
Does anyone have any suggestions? I thought about making the OnInitDialog() methods in my propertypages public but that seems a bit naughty.
Thanks
Tony
|
|
|
|
|
Check out the PSP_PREMATURE style.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
Hey thanks David, I'm not going mad after all. I was beginning to think I had imagined it
Tony
|
|
|
|
|
I will give somebody some codes if they want:
here is a sample for free:
#include<iostream>
using namspace std;
int main()
{
cout<<"Welcome to the funnest game alive."<<enedl;
cout<<\n\n";
string song="Imagine" ;
cout<<"what="" did="" john="" lennon="" play="" on="" the="" piano?:;
cin="">>song;
if(song == "Imagine")
{
cout<<"If you got Imagine, that's correct."<<endl;
}
if(song!= "imagine")
{
="" cout<<"i'm="" sorry,="" but="" that="" is="" incorrect."<<endl;
}
string="" book="IT" ;
cout<<"what="" did="" stephen="" king="" write="" was="" about="" a="" clown="" in="" the="" sewers?:";
cin="">>book;
if(book == "IT")
{
cout<<"Yes, that's it."<<endl;
}
if(book !="IT" )
{
="" cout<<"stephen="" king="" must="" not="" be="" your="" favorite="" writer,="" am="" i="" right?"<<endl;
}
system("pause");
return="" exit_success;
}
what="" all="" of="" this="" means="" is="" that="" if="" any="" the="" questions="" right="" or="" wrong,="" it="" will="" put="" output="" to="" screen="" from="" code="" above.="" what="" system="" when="" program="" compiles="" and="" doesn't="" find="" errors,="" usually="" exits="" with="" no="" errors="" stops(return="" 0="" does="" this),="" but="" told="" compiler="" pause="" after="" compiling="" once="" successfully="" displays="" program's="" contents.=""
i="" hope="" you="" enjoy="" one="" can="" add="" whatever="" want="" in="" make="" better="" do="" something="" else.="" don't="" really="" care="" anymore.
<div="" class="signature">Timothy Hosey
|
|
|
|
|
//..or do something else
They sought it with thimbles, they sought it with care;
They pursued it with forks and hope;
They threatened its life with a railway-share;
They charmed it with smiles and soap.
|
|
|
|
|
I've tried everything to switch, it all seems to fail. I wanted to switch to web design, but it would be the same kind of thing I'm going through now with no job in it and all. I've done some self-taught codes in java script and html and it doesn't look that hot or appealing to employers, even if I did go some school to teach me more crap that probably is basic and not in-depth with details and examples to get a jump start on a career for myself.
|
|
|
|
|
While some programmers do write about future,
your switch to be a writer about past seems to be good.
I see a possible documentation-piece in your language
as a canny and easy-to-understand thing (adventure)
They sought it with thimbles, they sought it with care;
They pursued it with forks and hope;
They threatened its life with a railway-share;
They charmed it with smiles and soap.
|
|
|
|
|
First priority: Data Structures. This will be useful no matter what language you're programming in, and for any application. There are lots of introductory books on Data Structures.
Second priority: Object-oriented programming. More specifically classes, inheritance, virtual functions, and polymorphism (it sounds harder than it is.) A background in object-oriented programming is essential to understand Design Patterns.
Other priorities: Graphics. Most modern programs involve graphics and if you study web programming, experience with graphics will be valuable. .NET languages all have good graphics capabilities.
If you're interested in web design, start with HTML. It's a display-only language, so is relatively easy. The next step is JavaScript to make your HTML pages interactive. Next, Java or PHP.
Working on an open-source project will look good on your resume, and will be experience that will help you develop your programming skills.
|
|
|
|