Главная страница | назад





Article #15413: Getting an application handle in a BCB app

 Question and Answer Database
FAQ413C.txt Getting an application handle in a BCB app
Category :Windows API
Platform :All
Product :C++Builder 1.x
Question:
How do I access an application handle in BCB?
Answer:
In any class derived from TForm, do this:
HINSTANCE hInst = reinterpret_cast(GetWindowLong(Handle, GWL_HINSTANCE);
where Handle is the handle to your window.
7/2/98 10:32:32 AM

Last Modified: 01-SEP-99