Autor Beitrag
Neidhard von Reuental
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 268

XP
BDS 2006 Prof
BeitragVerfasst: Mi 09.03.05 19:56 
Hallo miteinander,
ich möchte das Style einer Fremdanwendung verändern (z.b. bsSizable auf bsNone).
Das ganze wollte ich mit der WindowsMessage WM_STYLECHANGED erledigen.
Der Aufruf erfolgt so:
ausblenden Quelltext
1:
   m:=SendMessage(wnd,WM_STYLECHANGED, GWL_STYLE , xxx );					

Alles schön und gut nur an Stelle von "xxx" muß noch ein Parameter übergeben werden. Der Parameter soll vom Typ STYLESTRUCT sein. Habe dazu auch passende Styles gefunden.

Aber irgendwie bekomm ich das nicht hin.
Hat jemand ne Ahnung oder einen Tip zur lösung des Problems?

Cu
Neidhard
uall@ogc
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1826
Erhaltene Danke: 11

Win 2000 & VMware
Delphi 3 Prof, Delphi 7 Prof
BeitragVerfasst: Mi 09.03.05 20:00 
ich tip mal:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
type tstyle = packed record 
old, new: cardinal;
end;

pstyle = ^tstyle;


var style: tstyle;


...


und dann @style übergeben

_________________
wer andern eine grube gräbt hat ein grubengrabgerät
- oder einfach zu viel zeit
Neidhard von Reuental Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 268

XP
BDS 2006 Prof
BeitragVerfasst: Mi 09.03.05 20:11 
Dann kommt Fehler "Inkompatible Typen: Integer und Pointer" :roll:
Lesco
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 42



BeitragVerfasst: Do 24.03.05 14:27 
wie wärs wenn du
ausblenden Delphi-Quelltext
1:
Integer(@style)					

übergibst