CFanatic

Go Back   CFanatic > Programming > Win32 Programming

Join CFanatic Forum Now

get Class topic posted under Win32 Programming which is a part of Programming category in CFanatic Forum
Reply
 
Thread Tools Display Modes
  #1  
Old 10-06-2008, 10:48 PM
Junior Member
 
Join Date: Oct 2008
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
johny10151981 is on a distinguished road
| More
get Class

is there any kind of function by which i can retrive the class of specifide window handle.
Reply With Quote
  #2  
Old 10-07-2008, 03:58 AM
Senior Member
 
Join Date: Jul 2008
Posts: 101
Thanks: 0
Thanked 0 Times in 0 Posts
xpi0t0s is on a distinguished road
| More
Re: get Class

Yep, use GetClassName to get the class name from the window handle, GetWindowLong(hWnd, GWL_HINSTANCE) to get the instance from the window handle, then call GetClassInfoEx to get the class from the instance and class name.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem while creating a class for new dialog dathatreya MFC Programming 1 04-02-2008 01:00 AM
Simple class not working psppb C++ Programming 3 01-08-2008 10:24 PM
sizeof for a class coderzone C Programming 2 06-05-2007 10:29 PM
How can you get the current class name without using StackTrace? codeunlock C# Programming 0 04-29-2007 12:42 AM
Class Project aaholland C++ Programming 0 09-11-2006 11:40 PM

 

Advertisement

CFanatic Search
Custom Search

Advertisement

All times are GMT -5. The time now is 04:52 PM.



Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO ©2010, Crawlability, Inc.
Cfanatic.com is a premier member of the IDG TechNetwork. For advertising opportunities contact here
Get Paid for Working on Projects Matching Your Expertise at Go4Expert's Jobs Board