Lost Password?


Go Back   CodeCall Programming Forum > Software Development > Pascal/Delphi

Pascal/Delphi Forum for discussing Borland Delphi and Pascal coding techniques, tips and tricks.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-11-2008, 03:59 AM
alex2323 alex2323 is offline
Newbie
 
Join Date: Jun 2008
Posts: 3
Rep Power: 0
alex2323 is on a distinguished road
Default unique handle

Hi, I wrote:
Code:
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.

Last edited by WingedPanther; 06-11-2008 at 11:43 AM. Reason: add code tags
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 06-11-2008, 11:42 AM
WingedPanther's Avatar   
WingedPanther WingedPanther is offline
Super Moderator
 
Join Date: Jul 2006
Age: 35
Posts: 3,277
Last Blog:
wxWidgets is NOT code ...
Rep Power: 36
WingedPanther is a name known to allWingedPanther is a name known to allWingedPanther is a name known to allWingedPanther is a name known to allWingedPanther is a name known to allWingedPanther is a name known to all
Default Re: unique handle

If the handle is something you anticipate having control over, you can make sure you don't open duplicate windows with the same handle.
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum
Programming is a branch of mathematics.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-12-2008, 09:01 AM
alex2323 alex2323 is offline
Newbie
 
Join Date: Jun 2008
Posts: 3
Rep Power: 0
alex2323 is on a distinguished road
Default Re: unique handle

I resolved the problem. Exist a posibility to find window by Class )
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
alternativ way to handle collision in games like snake acwclassic Java Help 7 06-09-2008 04:44 PM
Unique & Complex Sorting Program ryan.devani C and C++ 3 01-17-2008 01:28 PM
newbie in need of C++ handle help?! tootypegs C and C++ 0 11-25-2007 07:42 AM
Unique ID Jaan PHP Tutorials 2 03-23-2007 08:06 AM


All times are GMT -5. The time now is 05:33 PM.

Contest Stats

WingedPanther ........ 2753.6
Xav ........ 2704
Brandon W ........ 1702.32
John ........ 1207.73
marwex89 ........ 1175.24
morefood2001 ........ 966.05
dcs ........ 655.75
Steve.L ........ 475.59
orjan ........ 418.58
Aereshaa ........ 383.54

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 98%

Ads