dbTalk Databases Forums  

How to get a Form pointer to the parent MS Access window?

comp.databases.ms-access comp.databases.ms-access


Discuss How to get a Form pointer to the parent MS Access window? in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
(Pete Cresswell)
 
Posts: n/a

Default How to get a Form pointer to the parent MS Access window? - 12-18-2004 , 07:51 AM






GetActiveWindow() returns a Long... So I'm guessing that's not it.

I've got a routine that I can feed a Form pointer to and which looks up the
user's last size/position for that form and sets the form to same.

Just added an option to have the app open this particular window instead of the
"Home" window at startup. If/when that option is invoked, I'd like to maximize
the window in question and the re-size the resulting MS Access parent window to
what the user had the child window set to the last time it was used (stored in
the .INI file already...).
--
PeteCresswell

Reply With Quote
  #2  
Old   
Matthias Klaey
 
Posts: n/a

Default Re: How to get a Form pointer to the parent MS Access window? - 12-18-2004 , 08:02 AM






On Sat, 18 Dec 2004 13:51:37 GMT, "(Pete Cresswell)" <x@y.z> wrote:

Quote:
GetActiveWindow() returns a Long... So I'm guessing that's not it.

I've got a routine that I can feed a Form pointer to and which looks up the
user's last size/position for that form and sets the form to same.

Just added an option to have the app open this particular window instead of the
"Home" window at startup. If/when that option is invoked, I'd like to maximize
the window in question and the re-size the resulting MS Access parent window to
what the user had the child window set to the last time it was used (stored in
the .INI file already...).
IIRC

Application.hWndAccessApp

works since Acess 2000.

HTH
Matthias Kläy
--
www.kcc.ch


Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.