#43 Dialogs are positioned in screen coords

OTHER
closed
None
out-of-date
Unknown
2013-01-25
2001-05-09
Anonymous
No

Hi!
I'm new to this brave gnu world...i was developing
under VisualC++ until now. There's the following
problem with the win32 package (could be windres,
too...): If I create a modeless dialog from my .rc-
file with

hDlg = CreateDialog(hInst, MAKEINTRESOURCE
(CES_DIALOG), hWnd, diaProc);

, it should be positioned relative to its parent
window hWnd. If I say SetWindowPos(hDlg, NULL, 0, 0,
0, 0, SWP_NOZORDER | SWPNORESIZE), the dialog is
placed to the top left edge of the screen instead in
the top left edge of my window...(works under
VisualC++). And about windres (perhaps off-topic, but
I don't know yet where to post it): Menues are not
shown if {} is used instead of BEGIN END. Furthermore,
"Commands" like MENU and DIALOG are not case-sensitive
under VC++, but are under windres. However, the
positioning problem is the most important one...any
workarounds/fixes?

Thanks,
Nicolas Weber

Discussion

  • Earnie Boyd

    Earnie Boyd - 2002-08-05
    • assigned_to: nobody --> earnie
    • status: open --> open-out-of-date
     
  • Earnie Boyd

    Earnie Boyd - 2002-08-05
    • status: open-out-of-date --> closed-out-of-date
     
  • Earnie Boyd

    Earnie Boyd - 2013-01-25
    • labels: w32api (deprecated use WSL) -->
    • status: closed-out-of-date --> closed
    • resolution: --> out-of-date
    • category: --> Unknown
    • milestone: --> OTHER
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks