简体   繁体   中英

searching for winapi functions

I'm learning programing windows applications with C++. Now I'm reading about messages and I'm playing with the spy++. What function spy++ use in order to mark/highlight the window under mouse cursor?

Also, can you give me some tips about using MSDN? I'm my opinion is not user friendly at all. I'm learning programming by myself and i can't get some real life experience tips as those which are learning at college or in teams.

ty

Not sure exactly what your problem with MSDN is ... I tend to go to eg Win32 and COM development and look around for a suitable category in the listing to the left, then click down from there. Or just enter function names and search if I already know what I'm looking for but want the reference documentation. On the other hand, I'm not much of a Win32 developer.

我认为spy ++只是直接在窗口/屏幕DC上反转颜色(例如,您可以使用InvertRect())在Windows 2000和更高版本上,如果实际上要实现此窗口突出显示,则最好使用半透明的分层窗口因为当与其他窗户后面的窗户弄乱时,可能会发生一些图形损坏。

Writing a Windows application with just the windows API is possible, but you'll end up writing huge amounts of boilerplate code just to create simple things. This is why people normally use libraries built on top of it to make things easier - MFC for example.

The MSDN article Creating Win32 Applications provides a good explanation of the ins-and-outs of a Windows application using the Win32 API. Bare in mind though that you could build the same application in minutes using MFC.

I agree that MSDN is not the most user friendly source of information for a beginner. In my opinion it works much better as a reference.

My advice would be to focus on building some test applications using MFC (assuming you are tied to C++ as a language). Try looking at the codeproject MFC sections for example, and perhaps even buy a book to help get you started. This does of course require Visual Studio, but you can download the free express edition here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM