Announcement

Collapse

Maintenance

The forum could be offline for 30-60 minutes in the very near future for maintenance (said 3pm Pacific). I was behind on getting this notice. I do apologize.
See more
See less

DDT: lParam in WM_INITDIALOG not supported.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • DDT: lParam in WM_INITDIALOG not supported.

    I really needed this feature, it seems DDT doesn't use the dwInitParam (DialogBoxParam)
    Now i'm messing with postmessage and custom messagenr.
    I want a pointer to a structure somewhere else.

    Is their a way to do this with DDT in a more direct way?

    BTW, For the next release it should be handy to implement CONTROL POST. (< CONTROL SEND)

    Thanks,

  • #2
    EB,
    How about Get/SetProp ??

    James


    ------------------

    Comment


    • #3
      Edwin --
      What about Patrice Terrier's idea of direct call callback function ?
      For DDT it looks so:
      Code:
        #Dim All
        #Compile Exe
        #Register None
        #Include "WIN32API.INC"
       
        CallBack Function DlgCallBack
           Select Case CbMsg
              Case %WM_USER + 1: SetWindowText CbHndl, Str$(CbWparam) + Str$(CbLparam)
           End Select
        End Function
       
        Function PbMain
          Dim hDlg As Long
          Dialog New 0, "DDTExample",,, 120, 30, %WS_CAPTION Or %WS_SYSMENU To hDlg
          CallWindowProc CodePtr(DlgCallBack), hDlg, %WM_USER + 1, 25, 50
          Dialog Show Modal hDlg Call DlgCallBack
      End Function
      ------------------

      Comment


      • #4
        There both good ideas.
        I prefer the lParam on WM_CREATE or WM_INITDIALOG.

        The PROP comes close, calling the procedure also.
        Stil additional code required.

        Semen, your sollution might become really handy, i use DDT a lot for modal boxes, execution of things 'from' the dialog codeproc i allways solved by using postmessage, now i have a 'sendmessage'. (Or i make use of a thread)

        JC, did you had any luck with the 2.5 spread yet?

        Thanks,



        ------------------

        Comment


        • #5
          I have already submitted request(s) for DIALOG POST and CONTROL POST... Thanks anyway!

          ------------------
          Lance
          PowerBASIC Support
          mailto:[email protected][email protected]</A>
          Lance
          mailto:[email protected]

          Comment


          • #6
            Originally posted by E B Knoppert:
            There both good ideas.

            JC, did you had any luck with the 2.5 spread yet?

            Yes but only with SDK not DDT.

            James


            ------------------

            Comment


            • #7
              Maybe you can give me a scanned DDT + DLB file?


              ------------------

              Comment


              • #8
                Originally posted by E B Knoppert:
                Maybe you can give me a scanned DDT + DLB file?

                I don't understand? What is a DLB file?

                James


                ------------------

                Comment

                Working...
                X