Re: Need help in creating a pop-up window

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



veenuuu@xxxxxxxxx wrote:
hi all,

I am new to VC++.
I am working in VC++6.0 IDE.
I want to create a popup in console window environment.
I drilled MSDN and found the MessageBox function which works fine for
me.
I was trying out the CreateWindowEx( ) with thw WS_POPUP style.
Its compiling and building fine but am facing some problem while
running it.
Its not outputting anything.
Can anyone provide a sample code for it please.

Thanks in advance,
Veenu.


MessageBox and DialogBox each have a built in message pump, which makes them easy to use in a console program. But windows created with CreateWindow(Ex) require you to provide a message pump and other infrastructure, which would require an extensive re-architecting of your console program.

--
Scott McPhillips [VC++ MVP]

.



Relevant Pages

  • Re: Need help in creating a pop-up window
    ... I tried out the MEssageBox function and it worked fine. ... I want to create a popup in console window environment. ... MessageBox and DialogBox each have a built in message pump, ... them easy to use in a console program. ...
    (microsoft.public.vc.language)
  • Re: How to correctly pop a modeless dialog from console using MFC
    ... For most of my console applications, I prepare a Console Control Handler with the WIN32 API function: ... MSG msg; ... is the most *efficient* form of synchronization and waiting for events to occur in Windows! ... You can create a 2nd thread with a window and give it is own message pump. ...
    (microsoft.public.vc.mfc)
  • Re: ATL COM server for System Tray Icon
    ... You need to run a message pump instead - see ... GetMessage, DispatchMessage (yes, console applications can have a message ... The example works fine from the user app supplied in the source code. ... launching this COM server from a console app, ...
    (microsoft.public.vc.atl)
  • Re: FPC 2.0.2 Win32 Console Application and GetOpenFileName() Dialog
    ... I do have a Petzold Book (Programming Windows 3.1). ... the sections that explain about the message pump. ... console or not doesn't have anything to do with it afaik. ...
    (comp.lang.pascal.misc)
  • ADO in a console? ADO in a service?
    ... running without a win message pump, ... - a console? ... Are there limitations, pitfalls and/or funny behaviors to be aware of? ...
    (borland.public.delphi.database.ado)