FindWindow() function
Posted: Fri Jan 20, 2006 8:08 am
Hi ! Can be done , that FindWindow will find window with a part of title ? I'm using in titles users names :
I tried and without users name findwindow( 0, cMainTitle ) works fine . But adding user's name in caption the function can't detect . I think , that Window caption in searchs can be compare with the lenght of search string , something left( cWindCaption, len( alltrim( cSearch ) ) ) == alltrim( cSearch ) . How to do that ?
With best regards ! Rimantas .
Code: Select all
cMainTitle := "MyApp ."
...
DEFINE WINDOW oWnd_pagr MDI FROM 10, 10 TO nVerRes / 3.5, ;
nHorRes / 1.5 TITLE cMainTitle + alltrim( cUserName ) + " . " ;
MENU BuildMenu() PIXEL
With best regards ! Rimantas .