Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   Delphi Aktive Seite eines Tabcontrol ändern (https://www.delphipraxis.net/17092-aktive-seite-eines-tabcontrol-aendern.html)

snowwolf3000 27. Feb 2004 23:28


Aktive Seite eines Tabcontrol ändern
 
Hallo,

ich würde gerne in einer fremden Anwendung eine andere Seite eines TabControls aktivieren. Ich hab das Handle der Anwendung, des TabControls und ich glaub ich kenne sogar die Message hierfür. Meiner Meinung nach TCN_SELCHANGE. Wenn ich das richtig verstanden hab kann man die aber nicht direkt zusenden, sondern muss diese in einen Record einer WM_NOTIFY Nachricht übergeben.
Ich hab versucht die gefordeten Werte des Records zu setzen, bekomm aber immer Fehler 126 "Module nicht gefunden". Wäre echt dankbar wenn mir irgendjemand auf die Sprünge helfen könnte.

Gruß,
Snowwolf

toms 28. Feb 2004 05:04

Re: Aktive Seite eines Tabcontrol ändern
 
TabCtrl_SetCurFocus Macro

--------------------------------------------------------------------------------

Sets the focus to a specified tab in a tab control.
You can use this macro or send the TCM_SETCURFOCUS message explicitly.

Syntax

VOID TabCtrl_SetCurFocus(
HWND hwnd,
int iItem
);

snowwolf3000 28. Feb 2004 07:28

Re: Aktive Seite eines Tabcontrol ändern
 
Mit dieser Funktion klappt das wirklich absolut problemlos.
Vielen Dank für deine Hilfe!

Luckie 28. Feb 2004 08:19

Re: Aktive Seite eines Tabcontrol ändern
 
Zitat:

Zitat von snowwolf3000
Mit dieser Funktion klappt das wirklich absolut problemlos.

Tja, machmal funktioniert bei Microsoft auch was. :zwinker:

Sorry, couldn't resist. :roll:

snowwolf3000 28. Feb 2004 08:44

Re: Aktive Seite eines Tabcontrol ändern
 
*g* Zwischen all den Bugs scheint sich doch ab und zu tatsächlich auch mal Code zu befinden der funktioniert.
Wird aber bestimmt mit den nächsten Sevice Pack "gefixt". :wink:
Aber mal ehrlich, wäre doch langweilig wenn man sich nicht über die Jungs in Redmond aufregen könnte.


Alle Zeitangaben in WEZ +1. Es ist jetzt 05:41 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz