On Jun 29, 2006, at 1:27 PM, David Niemeijer wrote:
I would like to have utility window style behavior and layering and
have document window size of size box and title bar. Basically, a
utility window with a taller title bar and bigger size box. Is
there an easy way to get that? I though about using a regular
document window and then setting the window group to the utility
window group, but then the looks and the behavior do not match
regular utility windows (like different looks when app is in
foreground and when app is in background). Is there some kind of
trick for this or must one make a custom window?
This should do it:
WindowDefSpec defSpec;
defSpec.defType = kWindowDefProcID;
defSpec.u.procID = kWindowFullZoomGrowDocumentProc;
CreateCustomWindow( &defSpec, kUtilityWindowClass,
kWindowStandardDocumentAttributes | kOtherAttributesYouWant,
&bounds, &window );