Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple question

Status
Not open for further replies.

ownedbytheman

Programmer
Aug 24, 2004
1
CA
Fairly new C/C++ programmer here. Probably a simple question.

I am writing a C style, regular dll. I will describe what it is for but it will sound like I am trying to write a worm, and I'm not.

I have a legacy application (SalesLogix 5.2) that allows very limited drag&drop functionality. I am writing a dll that will load into it's process via dll injection and I will use it to host the callback procs etc that I need to setup (hopefully) OLE D&D. How I get the addresses of the procs into the application to reference is my next hurdle but one thing at a time.

What I am having problems with right now is enumerating windows (or controls etc) on a form and getting identifying properties of the controls on the page. Bascially, I need to be able to specifically pick controls to "turn on" Drag and Drop but I can't seem to get anything meaningful from GetClassInfoEx to help me identify specific controls.

In VB, when I create a control, it has a name. Is there a function that will allow me to query these kinds of properties of controls?
 
I assume the form you want to interrogate is in SalesLogix? If so, then use WinSpy (it comes with the tools that you install when you install Visual Studio). It allows you to point the cursor at a form, button, or any control and get names, handle IDs, etc of the thing being pointed at.

Then, your app can spy on the desktop, enumerating windows, and then drill down into the sales logic app as needed and hook its message queue, etc.

I suggest getting a book on advanced Windows programming, maybe by Charles Petzold. Sounds like you need to figure your way around windows and windows messaging.

TR
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top