Habs gefunden.
Delphi-Quellcode:
{******************************************************************************}
{ }
{ TwoWindows }
{ }
{ Copyright (c) 2001 Michael Puff }
{ www.luckie-online.de }
{ mpuff@luckie-online.de }
{ }
{******************************************************************************}
program TwoWindows;
{$R resource.res}
uses
Windows,
Messages;
const
ClassName1 = 'Wnd1Class';
ClassName2 = 'Wnd2Class';
Window1Name = 'Window 1';
Window2Name = 'Window 2';
WindowWidth1 = 500;
WindowHeight1 = 400;
WindowWidth2 = 300;
WindowHeight2 = 200;
IDC_BUTTON1 = 1; // <--- !!!!!
Schock-schwere-Not. Die Dinger lassen sich mit Delphi 2006 immer noch ohne Probleme kompilieren.