🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #706

Dialog as Mainwindow: Problems, help!!!

#706
From: Nicolai Wadstr|m
Date: Tue, 14 Apr 1992 22:27
37 lines
1542 bytes
The system (mailer & bbs) I'm working on right now has given me some
troubles... For convinience I use a Dialog as a main window, but this
causes some problems, I can't (or don't know how) to set the icon for 
the window (the windows has a minimize button), and when the application
is started it doesn't get focus! The program windows comes to the foreground
but it does not become the active application!

This is how I call the dialog function:

void    cdecl main (void)
{
  HAB     hab;
  HMQ     hmq;


  hab = WinInitialize(NULL);
  hmq = WinCreateMsgQueue(hab, 0);


   WinDlgBox( HWND_DESKTOP, HWND_DESKTOP, MainDlgWnd, NULL, ID_MAINWND, NULL );

   WinDestroyMsgQueue( hmq );
   WinTerminate( hab );
}


I would be greatfull for any help!


Regards,
          nicolai, nicolai@lysator.liu.se
--
Nicolai Wadstr|m                   # Internet:      nicolai@lysator.liu.se
                                   #
                                   # BBS:           +46-40-124554 (down)
                                   # Voice:         +46-40-975535
Technical Details
Message-ID: <1228@lysator.liu.se>
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!mips!swrinde!gatech!bloom-beacon!eru.mt.luth.se!lunic!sunic!liuida!isy!lysator.liu.se!nicolai

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!mips!swrinde!gatech!bloom-beacon!eru.mt.luth.se!lunic!sunic!liuida!isy!lysator.liu.se!nicolai
From: nicolai@lysator.liu.se (Nicolai Wadstr|m)
Newsgroups: comp.os.os2.programmer
Subject: Dialog as Mainwindow: Problems, help!!!
Message-ID: <1228@lysator.liu.se>
Date: 14 Apr 92 22:27:13 GMT
Sender: news@isy.liu.se (Lord of the News)
Organization: Lysator Computer Club, Linkoping University, Sweden
Lines: 37