Jump to content

unique handle

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
alex2323

alex2323

    Newbie

  • Members
  • Pip
  • 4 posts
Hi, I wrote:
procedure TForm1.Timer1Timer(Sender: TObject);
var
h1 :hwnd;

begin
h1:=FindWindow(nil, 'My Computer');
ShowWindow(h1, sw_hide);

end;
But, if handle consist of first letters 'My Computer' and futher some other words. In another word handle have unique name every time. How can I resolve that? Thanks.

Edited by WingedPanther, 11 June 2008 - 07:43 AM.
add code tags


#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
If the handle is something you anticipate having control over, you can make sure you don't open duplicate windows with the same handle.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
alex2323

alex2323

    Newbie

  • Members
  • Pip
  • 4 posts
I resolved the problem. Exist a posibility to find window by Class )