홈 · 개발 참고자료

개발 참고자료

[파워빌더] Retrieve window handle by its title

작성자
관리자
작성일
2016-10-16
조회
11633
분류
파워빌더
[local fucntion declaration]
FUNCTION ulong FindWindowA(ulong classname,string windowname) &
LIBRARY "user32.dll"

[powerscript]
public function unsignedlong uf_findwindow (string as_name);
//
// as_name: Name of window (case sensitive)
//
// Returns: Window handle or zero if not found
//

ulong ul_class

SetNull(ul_class)
RETURN FindWindowA(ul_class,as_name)