Re: Function GetActiveWindow Lib "user32"

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Jake Marx (msnews_at_longhead.com)
Date: 04/28/04


Date: Wed, 28 Apr 2004 12:37:13 -0700

Hi Jac,

Jac Tremblay wrote:
> That is very interesting. I tried your code and it's rather straight
> forward. But how come one does not have to declare something like
> "Private Declare Function GetActiveWindow Lib "user32" () As Long" in
> the screen window code declaration section?

This code is automating the Shell - it is not calling API functions (such as
GetActiveWindow) directly.

> Another question: Why,
> when I create a new folder, I can specify its new name only at the
> root? If not at the root, the folder gets automatically the name "New
> Folder" with no feed back.

I'm not sure what you're referring to here. Keep in mind that we can't see
your code unless you post it. <g>

-- 
Regards,
Jake Marx
MS MVP - Excel
www.longhead.com
[please keep replies in the newsgroup - email address unmonitored]


Relevant Pages

  • Re: Learning tagged types
    ... Proc: Proc_Ptr; ... I think what you want is to declare a root type instead of Proc_Def. ... ("overriding" is an Ada 2005 extension; ...
    (comp.lang.ada)
  • Re: Statics and inheritance
    ... if you declare it in Root then you are implying that ALL the derived ... > Let's say I have a root class called RootBusinessService ... the subclasses will all point to that single property. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: compiling m-files (graphical interface)
    ... If you declare it global, you have to declare it global for all ... Can you run the open command directly from the MATLAB command line? ... necessarily the same as the folder where the executable lives. ... do a msgbox in the startup code and display the cd. ...
    (comp.soft-sys.matlab)
  • Re: Error loading class when developing web pages under folders
    ... in a single namespace, you can not declare more than one class with same name. ... Probably the declaration "Public Class Default" might appears moer than once in your whole application. ... Even if I simply create a new folder and create a new web ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: XML DTD Validation, namespaces and best practices
    ... >In my instance, to declare the namespace, I have this on my root ... You don't have to declare them on the root, ... namespace declaration attributes have to be declared like any others. ... >Since the validator says this is OK, I'm using what I've done is OK? ...
    (comp.text.xml)