home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / smart21b.zip / SMARTAUX / WINXOS2 / WINXOS2.DCT < prev   
Text File  |  1995-03-15  |  27KB  |  672 lines

  1. .Table   =Dictionary File for the MDI APIs
  2. .Version =1.0
  3. .Date    =10-10-94
  4. .Notes   =Bob Rhoads Jeff Abbott
  5.          =*****************************************************************
  6.          =*                                                               *
  7.          =*  Keywords for migrating from Windows 3.1 MDI to OS/2 2.1 MDI  *
  8.          =*                                                               *
  9.          =*****************************************************************
  10. .Keyword =010 020 210 CreateWindow
  11. .Notes   =This keyword is processed in this situation for the purpose of removing
  12.          =the CreateWindow call that uses the MDICLIENT class.
  13. .SComment=Replace with WinCreateWindow or WinCreateStdWindow
  14. .LComment=Replace with WinCreateWindow to create controls or non-frame windows.
  15.          =Use WinCreateStdWindow to create frame windows. Top-level, Popup, or
  16.          =control windows which use any of the frame controls should be created
  17.          =with WinCreateStdWindow. System class names must be mapped to the OS/2
  18.          =class name. Coordinates must be recalculated based on (0,0) being
  19.          =located in the lower-left corner.  Use FCF_TASKLIST to add a window
  20.          =automatically to the switch list.
  21. .Sample  =Windows:
  22.          =  HWND hWnd = CreateWindow ("BUTTON", "OK",
  23.          =    WS_VISIBLE | WS_CHILD | WS_TABSTOP, 10, 10, 40, 16,
  24.          =    hWndParent, IDOK, hInst, NULL);
  25.          =OS/2:
  26.          =  HWND hWnd = WinCreateWindow (hWndParent, WC_BUTTON, "OK",
  27.          =    WS_VISIBLE | WS_TABSTOP, 10, 150, 40, 16, hWndParent,
  28.          =    HWND_TOP, DID_OK, NULL, NULL);
  29. .Prototyp=HWND APIENTRY WinCreateWindow (HWND hwndParent,
  30.          =  PSZ pszClassName, PSZ pszName, ULONG flStyle,
  31.          =  LONG lxCoord, LONG lyCoord, LONG lWidth, LONG lHeight,
  32.          =  HWND hwndOwner, HWND hwndBehind, ULONG id,
  33.          =  PVOID pCtlData, PVOID pPresParams);
  34.          =HWND APIENTRY WinCreateStdWindow (HWND hwndParent,
  35.          =  ULONG flStyle, PULONG pflCreateFlags,
  36.          =  PSZ pszClassClient, PSZ pszTitle, ULONG flStyleClient,
  37.          =  HMODULE hModResource, ULONG id, PHWND phwndClient);
  38. .Template=WinCreateWindow (,,,,,,,,,,,,)
  39.          =WinCreateStdWindow (,,,,,,,,)
  40. .Command =IF $P1 NOT = '"MDICLIENT"' THEN
  41.          =  DO
  42.          =    SmMigrateKeyword($T1)
  43.          =    SmMigrateKeyword($T2)
  44.          =    EXIT
  45.          =  END
  46.          =IF $KIND = "TRUE" THEN
  47.          =  DO
  48.          =    SmRemove(LINE)
  49.          =    NOTE = "The source line has been removed for " $KEY
  50.          =    SmOutputNote(NOTE)
  51.          =  END
  52.          =ELSE
  53.          =  DO
  54.          =    NOTE1 = "WARNING: " $KEY " has been removed from imbedded code."
  55.          =    NOTE2 = "The code must be changed to accomodate the removal of this keyword."
  56.          =    SmOutputNote(NOTE1)
  57.          =    SmOutputNote(NOTE2)
  58.          =  END
  59.          =SmNoComment(ALL)
  60.          =NOTE1 = "****  N O T I C E  ****"
  61.          =NOTE2 = "The client window that is created with the MDICLIENT class"
  62.          =NOTE3 = "is not needed for the OS/2 MDI. The frame window procedure"
  63.          =NOTE4 = "should be used as a combination frame and client procedure"
  64.          =NOTE5 = "by creating the main frame window with a WinCreateStdWindow"
  65.          =NOTE6 = "call instead of a WinCreateWindow call."
  66.          =NOTE7 = "VERY IMPORTANT:  You must IMPLEMENT the following changes:
  67.          =NOTE8 = "  1. Use the window handle name from the original create window"
  68.          =NOTE9 = "     call as the last parameter (client handle) in the call to"
  69.          =NOTEA = "     WinCreateStdWindow."
  70.          =NOTEB = "  2. Call WinRegisterMDIClasses before creating the application"
  71.          =NOTEC = "     main window.
  72.          =NOTED = "  3. Include the MDI.H header at the top of this file."
  73.          =NOTEE = "  4. Compile and link mdi.C and accel.C to the main program."
  74.          =NOTEF = "  5. These C files are in the SMARTAUX\SMARTMDI directory."
  75.          =SmOutputNote(NOTE1)
  76.          =SmOutputNote(NOTE2)
  77.          =SmOutputNote(NOTE3)
  78.          =SmOutputNote(NOTE4)
  79.          =SmOutputNote(NOTE5)
  80.          =SmOutputNote(NOTE6)
  81.          =SmOutputNote(NOTE7)
  82.          =SmOutputNote(NOTE8)
  83.          =SmOutputNote(NOTE9)
  84.          =SmOutputNote(NOTEA)
  85.          =SmOutputNote(NOTEB)
  86.          =SmOutputNote(NOTEC)
  87.          =SmOutputNote(NOTED)
  88.          =SmOutputNote(NOTEE)
  89.          =SmOutputNote(NOTEF)
  90.  
  91.  
  92. .Keyword =010 020 215 DefFrameProc
  93. .SComment=Replace with WinDefMDIServerProc
  94. .LComment=Replace with WinDefMDIServerProc
  95. .Sample  =Windows:
  96.          =  return (DefFrameProc (hwnd, hwndClient, msg, wParam, lParam);
  97.          =OS/2:
  98.          =  return (WinDefMDIServerProc (hwnd, ulMsg, mp1, mp2);
  99. .Prototyp=MRESULT APIENTRY WinDefMDIServerProc (HWND hwnd, ULONG ulMsgID,
  100.          =                                      MPARAM mParam1, MPARAM mParam2);
  101. .Template=WinDefMDIServerProc($P1, $P3, $P4, $P5)
  102. .Command =SmNoComment(ALL)
  103.          =SmMigrateKeyword($T1)
  104.  
  105.  
  106. .Keyword =010 010 215 DefMDIChildProc
  107. .SComment=Replace with WinDefMDIDocumentProc
  108. .LComment=Replace with WinDefMDIDocumentProc
  109. .Sample  =Windows:
  110.          =  return (DefMDIChildProc (hwnd, msg, wParam, lParam);
  111.          =OS/2:
  112.          =  return (WinDefMDIDocumentProc (hwnd, ulMsg, mp1, mp2);
  113. .Prototyp=MRESULT APIENTRY WinDefMDIDocumentProc (HWND hwnd, ULONG ulMsgID,
  114.          =                                        MPARAM mParam1, MPARAM mParam2);
  115. .Template=WinDefMDIDocumentProc($P1, $P2, $P3, $P4)
  116. .Command =SmNoComment(ALL)
  117.          =SmMigrateKeyword($T1)
  118.  
  119.  
  120. .Keyword =010 000 215 TranslateMDISysAccel
  121. .SComment=Remove the use of this function
  122. .LComment=Remove the use of this function. The translation is automatically
  123.          =performed with the use of the accelerator table.
  124. .Sample  =Windows:
  125.          =  TranslateMDISysAccel(hwnd, &msg);
  126.          =OS/2:
  127.          =  Not applicable
  128. .Prototyp=*** N/A ***
  129. .Template=
  130. .Command =IF $KIND = "TRUE" THEN
  131.          =  DO
  132.          =    SmRemove(LINE)
  133.          =    NOTE = "The source line has been removed for " $KEY
  134.          =    SmOutputNote(NOTE)
  135.          =  END
  136.          =ELSE
  137.          =  DO
  138.          =    NOTE1 = "WARNING: " $KEY " has been removed from imbedded code."
  139.          =    NOTE2 = "The code must be changed to accomodate the removal of this keyword."
  140.          =    SmOutputNote(NOTE1)
  141.          =    SmOutputNote(NOTE2)
  142.          =  END
  143.          =NOTE1 = $KEY " is not necessary since the translation is automatically performed
  144.          =NOTE2 = "with the use of the accelerator table."
  145.          =SmNoComment(ALL)
  146.  
  147.  
  148. .Keyword =010 010 215 ArrangeIconicWindows
  149. .SComment=Replace with WinArrangeIconicMDIDocuments
  150. .LComment=Replace with WinArrangeIconicMDIDocuments
  151. .Sample  =Windows:
  152.          =  ArrangeIconicWindows(hwnd);
  153.          =OS/2:
  154.          =  WinArrangeIconicMDIDocuments(hwnd);
  155. .Prototyp=INT WinArrangeIconicMDIDocuments(HWND hwnd);
  156. .Template=WinArrangeIconicMDIDocuments($P1)
  157. .Command =SmNoComment(ALL)
  158.          =SmMigrateKeyword($T1)
  159.  
  160.  
  161. .Keyword =010 020 200 SendMessage
  162. .Notes   =This keyword is processed in this situation for the purpose of message
  163.          =parameter manipulation for all MDI messages being sent.
  164. .SComment=Replace with WinSendMsg noting the differences in parameters
  165. .LComment=Replace with WinSendMsg noting the differences in parameters
  166. .Sample  =Windows:
  167.          =  SendMessage(hwnd, WM_MDITILE, 0, 0);
  168.          =OS/2:
  169.          =  WinSendMsg(hwnd, WM_MDITILE, 0, 0);
  170. .Prototyp=MRESULT WinSendMsg(HWND hwnd, ULONG ulMsg, MPARAM mp1, MPARAM mp2)
  171. .Template=WinSendMsg(,,,)
  172.          =WinSendMsg($P1, $P2, $P3, $P4)
  173. .Command =IF $P2 = "wm_mdiactivate" THEN
  174.          =  DO
  175.          =    ?MDIMSG = "Yes"
  176.          =    ?PARAM1 = $P4
  177.          =    ?PARAM2 = $P3
  178.          =    ?DESCP1 = "Unused"
  179.          =    ?DESCP2 = "HWND of document"
  180.          =  END
  181.          =IF $P2 = "wm_mdicascade" THEN
  182.          =  DO
  183.          =    ?MDIMSG = "Yes"
  184.          =    ?PARAM1 = $P3
  185.          =    ?PARAM2 = $P4
  186.          =    ?DESCP1 = "ULONG cascade flag"
  187.          =    ?DESCP2 = "Unused"
  188.          =  END
  189.          =IF $P2 = "wm_mdicreate" THEN
  190.          =  DO
  191.          =    ?MDIMSG = "Yes"
  192.          =    ?PARAM1 = $P3
  193.          =    ?PARAM2 = $P4
  194.          =    ?DESCP1 = "Unused"
  195.          =    ?DESCP2 = "mdicreatestruct* of document"
  196.          =  END
  197.          =IF $P2 = "wm_mdidestroy" THEN
  198.          =  DO
  199.          =    ?MDIMSG = "Yes"
  200.          =    ?PARAM1 = $P4
  201.          =    ?PARAM2 = $P3
  202.          =    ?DESCP1 = "Unused"
  203.          =    ?DESCP2 = "HWND of document"
  204.          =  END
  205.          =IF $P2 = "wm_mdigetactive" THEN
  206.          =  DO
  207.          =    ?MDIMSG = "Yes"
  208.          =    ?PARAM1 = $P3
  209.          =    ?PARAM2 = $P4
  210.          =    ?DESCP1 = "Unused"
  211.          =    ?DESCP2 = "Unused"
  212.          =  END
  213.          =IF $P2 = "wm_mdiiconarrange" THEN
  214.          =  DO
  215.          =    ?MDIMSG = "Yes"
  216.          =    ?PARAM1 = $P3
  217.          =    ?PARAM2 = $P4
  218.          =    ?DESCP1 = "Unused"
  219.          =    ?DESCP2 = "Unused"
  220.          =  END
  221.          =IF $P2 = "wm_mdimaximize" THEN
  222.          =  DO
  223.          =    ?MDIMSG = "Yes"
  224.          =    ?PARAM1 = $P3
  225.          =    ?PARAM2 = $P4
  226.          =    ?DESCP1 = "HWND of document"
  227.          =    ?DESCP2 = "Unused"
  228.          =  END
  229.          =IF $P2 = "wm_mdinext" THEN
  230.          =  DO
  231.          =    ?MDIMSG = "Yes"
  232.          =    ?PARAM1 = $P3
  233.          =    ?PARAM2 = $P4
  234.          =    ?DESCP1 = "HWND of document"
  235.          =    ?DESCP2 = "BOOL next/previous flag"
  236.          =  END
  237.          =IF $P2 = "wm_mdirestore" THEN
  238.          =  DO
  239.          =    ?MDIMSG = "Yes"
  240.          =    ?PARAM1 = $P3
  241.          =    ?PARAM2 = $P4
  242.          =    ?DESCP1 = "HWND of document"
  243.          =    ?DESCP2 = "Unused"
  244.          =  END
  245.          =IF $P2 = "wm_mdisetmenu" THEN
  246.          =  DO
  247.          =    ?MDIMSG = "Yes"
  248.          =    ?PARAM1 = $P4
  249.          =    ?PARAM2 = "0"
  250.          =    ?DESCP1 = "HWND of new frame menu"
  251.          =    ?DESCP2 = "Unused"
  252.          =    NOTE1 = "The first parameter of the original wm_mdisetmenu message contains a flag"
  253.          =    NOTE2 = "that determines if the new menu needs to be refreshed.  This is not necessary"
  254.          =    NOTE3 = "in the OS/2 MDI since all menus are automatically refreshed. The second"
  255.          =    NOTE4 = "parameter of the original message contains a new menu handle for the frame"
  256.          =    NOTE5 = "window and a new menu handle for the context popup menu. The menu handle"
  257.          =    NOTE6 = "of the frame window should be used, by itself, as the first parameter of the"
  258.          =    NOTE7 = "migrated message. The context popup menus should be handled by calling"
  259.          =    NOTE8 = "WinPopupMenu whenever a document window receives a WM_CONTEXTMENU message."
  260.          =    SmOutputNote(NOTE1)
  261.          =    SmOutputNote(NOTE2)
  262.          =    SmOutputNote(NOTE3)
  263.          =    SmOutputNote(NOTE4)
  264.          =    SmOutputNote(NOTE5)
  265.          =    SmOutputNote(NOTE6)
  266.          =    SmOutputNote(NOTE7)
  267.          =    SmOutputNote(NOTE8)
  268.          =  END
  269.          =IF $P2 = "wm_mditile" THEN
  270.          =  DO
  271.          =    ?MDIMSG = "Yes"
  272.          =    ?PARAM1 = $P3
  273.          =    ?PARAM2 = $P4
  274.          =    ?DESCP1 = "ULONG tiling flag"
  275.          =    ?DESCP2 = "Unused"
  276.          =  END
  277.          =IF ?MDIMSG NOT = "Yes" THEN
  278.          =  DO
  279.          =    SmMigrateKeyword($T1)
  280.          =    EXIT
  281.          =  END
  282.          =IF $SSkipAll = "Yes" THEN
  283.          =  DO
  284.          =    OPTION2 = "Skip"
  285.          =    OPTION3 = "Skip"
  286.          =  END
  287.          =ELSE
  288.          =  DO
  289.          =    SmSendToEditor("$LFile($LLine:$LCol)R")
  290.          =    DISPLAY = "Make any migration changes to " $P2 " mp1 (" ?DESCP1 ")"
  291.          =    SmPromptDlg(DISPLAY, ?PARAM1, OPTION2, $P3, ~Change | ~Skip | Skip/A~ll | ~Abort)
  292.          =    IF OPTION2 = "Abort" THEN TERMINATE
  293.          =    IF OPTION2 = "Skip/All" THEN
  294.          =      DO
  295.          =        DISPLAY1 = "WARNING! This selection will cause all MDI message parameters "
  296.          =        DISPLAY2 = "to retain their original values without prompting for changes."
  297.          =        DISPLAY = DISPLAY1 DISPLAY2
  298.          =        SmDisplayDlg(DISPLAY, OPTION, ~Ok | ~Cancel)
  299.          =        IF OPTION = "Ok" THEN
  300.          =          $SSkipAll = "Yes"
  301.          =        OPTION2 = "Skip"
  302.          =      END
  303.          =    IF $SSkipAll NOT = "Yes" THEN
  304.          =      DO
  305.          =        DISPLAY = "Make any migration changes to " $P2 " mp2 (" ?DESCP2 ")"
  306.          =        SmPromptDlg(DISPLAY, ?PARAM2, OPTION3, $P4, ~Change | ~Skip | Skip/A~ll | ~Abort)
  307.          =        IF OPTION3 = "Abort" THEN TERMINATE
  308.          =        IF OPTION3 = "Skip/All" THEN
  309.          =          DO
  310.          =            DISPLAY1 = "WARNING! This selection will cause all MDI message parameters "
  311.          =            DISPLAY2 = "to retain their original values without prompting for changes."
  312.          =            DISPLAY = DISPLAY1 DISPLAY2
  313.          =            SmDisplayDlg(DISPLAY, OPTION, ~Ok | ~Cancel)
  314.          =            IF OPTION = "Ok" THEN
  315.          =              $SSkipAll = "Yes"
  316.          =            OPTION3 = "Skip"
  317.          =          END
  318.          =      END
  319.          =  END
  320.          =IF OPTION2 = "Skip" THEN
  321.          =  $P3 = ?PARAM1
  322.          =IF OPTION3 = "Skip" THEN
  323.          =  $P4 = ?PARAM2
  324.          =SmNoComment(ALL)
  325.          =SmMigrateKeyword($T2)
  326.  
  327.  
  328. .Keyword =020 030 215 WM_MDIACTIVATE
  329. .SComment=Replace with WM_MDIACTIVATE noting parameter differences
  330. .LComment=Replace with WM_MDIACTIVATE noting parameter differences.
  331.          =The first and second parameters are swapped. The document
  332.          =windows that are activated and deactivated by the processing
  333.          =of this message should be changed to WM_ACTIVATE messages.
  334. .Sample  =Windows:
  335.          =  Sending:
  336.          =    SendMessage(hwnd, WM_MDIACTIVATE, hwndDoc, 0);
  337.          =  Receiving:
  338.          =    case WM_MDIACTIVATE:
  339.          =      fActivate = (BOOL)wParam;
  340.          =      hwndAct = (HWND)LOWORD(lParam);
  341.          =      hwndDeact = (HWND)HIWORD(lParam);
  342.          =OS/2:
  343.          =  Sending:
  344.          =    WinSendMsg(hwnd, WM_MDIACTIVATE, 0, hwndDoc);
  345.          =  Receiving:
  346.          =    Not applicable
  347. .Prototyp=Unused = mp1
  348.          =Document handle = (HWND)mp2
  349. .Template=wm_mdiactivate
  350.          =wm_activate
  351. .Command =SmSendToEditor("$LFile($LLine:$LCol)R")
  352.          =DISPLAY = "Is " $KEY " being sent or received?"
  353.          =SmDisplayDlg(DISPLAY, OPTION, ~Sent | ~Received | ~Abort)
  354.          =IF OPTION = "Abort" THEN TERMINATE
  355.          =IF OPTION = "Sent" THEN
  356.          =  SmMigrateKeyword($T1)
  357.          =ELSE
  358.          =  DO
  359.          =    SmMigrateKeyword($T2)
  360.          =    NOTE1 = "WARNING: wm_activate has been used to replace the receipt"
  361.          =    NOTE2 = "of the wm_mdiactivate message. The second parameter should"
  362.          =    NOTE3 = "be replaced with a single window handle, since the wm_activate"
  363.          =    NOTE4 = "message will be sent to both the activated and deactivated"
  364.          =    NOTE5 = "document windows for every wm_mdiactivate message that is sent."
  365.          =    NOTE6 = "This will probably require a change in the logic structure."
  366.          =    SmOutputNote(NOTE1)
  367.          =    SmOutputNote(NOTE2)
  368.          =    SmOutputNote(NOTE3)
  369.          =    SmOutputNote(NOTE4)
  370.          =    SmOutputNote(NOTE5)
  371.          =    SmOutputNote(NOTE6)
  372.          =  END
  373.          =SmNoComment(ALL)
  374.  
  375.  
  376.  
  377. .Keyword =020 000 215 WM_MDICASCADE
  378. .SComment=Replace with WM_MDICASCADE
  379. .LComment=Replace with WM_MDICASCADE
  380. .Sample  =Windows:
  381.          =  SendMessage(hwnd, WM_MDICASCADE, MDITILE_SKIPDISABLED, 0);
  382.          =OS/2:
  383.          =  WinSendMsg(hwnd, WM_MDICASCADE, MDITILE_SKIPDISABLED, 0);
  384. .Prototyp=Cascade flag = (ULONG)mp1;
  385.          =Unused = mp2;
  386. .Template=wm_mdicascade
  387. .Command =SmMigrateKeyword($T1)
  388.  
  389.  
  390. .Keyword =020 000 215 WM_MDICREATE
  391. .SComment=Replace with WM_MDICREATE noting parameter differences
  392. .LComment=Replace with WM_MDICREATE noting parameter differences.
  393.          =The document structure has several fields that have been
  394.          =added or removed in the OS/2 MDI.
  395. .Sample  =Windows:
  396.          =  SendMessage(hwnd, WM_MDICREATE, 0, &mdistruct);
  397.          =OS/2:
  398.          =  WinSendMsg(hwnd, WM_MDICREATE, 0, &mdistruct);
  399. .Prototyp=Unused = mp1
  400.          =Document structure address = (MDICREATESTRUCT *)mp2
  401. .Template=wm_mdicreate
  402. .Command =SmMigrateKeyword($T1)
  403.  
  404.  
  405. .Keyword =020 000 215 WM_MDIDESTROY
  406. .SComment=Replace with WM_MDIDESTROY noting parameter differences
  407. .LComment=Replace with WM_MDIDESTROY noting parameter differences.
  408.          =The first and second parameters are swapped.
  409. .Sample  =Windows:
  410.          =  SendMessage(hwnd, WM_MDIDESTROY, hwndDoc, 0);
  411.          =OS/2:
  412.          =  WinSendMsg(hwnd, WM_MDIDESTROY, 0, hwndDoc);
  413. .Prototyp=Unused = mp1
  414.          =Document handle = (HWND)mp2
  415. .Template=wm_mdidestroy
  416. .Command =SmMigrateKeyword($T1)
  417.  
  418.  
  419.  
  420. .Keyword =020 000 215 WM_MDIGETACTIVE
  421. .SComment=Replace with WM_MDIGETACTIVE
  422. .LComment=Replace with WM_MDIGETACTIVE
  423. .Sample  =Windows:
  424.          =  SendMessage(hwnd, WM_MDIGETACTIVE, 0, 0);
  425.          =OS/2:
  426.          =  WinSendMsg(hwnd, WM_MDIGETACTIVE, 0, 0);
  427. .Prototyp=Unused = mp1
  428.          =Unused = mp2
  429. .Template=wm_mdigetactive
  430. .Command =SmMigrateKeyword($T1)
  431.  
  432.  
  433. .Keyword =020 000 215 WM_MDIICONARRANGE
  434. .SComment=Replace with WM_MDIICONARRANGE
  435. .LComment=Replace with WM_MDIICONARRANGE
  436. .Sample  =Windows:
  437.          =  SendMessage(hwnd, WM_MDIICONARRANGE, 0, 0);
  438.          =OS/2:
  439.          =  WinSendMsg(hwnd, WM_MDIICONARRANGE, 0, 0);
  440. .Prototyp=Unused = mp1
  441.          =Unused = mp2
  442. .Template=wm_mdiiconarrange
  443. .Command =SmMigrateKeyword($T1)
  444.  
  445.  
  446. .Keyword =020 000 215 WM_MDIMAXIMIZE
  447. .SComment=Replace with WM_MDIMAXIMIZE
  448. .LComment=Replace with WM_MDIMAXIMIZE
  449. .Sample  =Windows:
  450.          =  SendMessage(hwnd, WM_MDIMAXIMIZE, hwndDoc, 0);
  451.          =OS/2:
  452.          =  WinSendMsg(hwnd, WM_MDIMAXIMIZE, hwndDoc, 0);
  453. .Prototyp=Document handle = (HWND)mp1
  454.          =Unused = mp2
  455. .Template=wm_mdimaximize
  456. .Command =SmMigrateKeyword($T1)
  457.  
  458.  
  459. .Keyword =020 000 215 WM_MDINEXT
  460. .SComment=Replace with WM_MDINEXT
  461. .LComment=Replace with WM_MDINEXT
  462. .Sample  =Windows:
  463.          =  SendMessage(hwnd, WM_MDINEXT, hwndDoc, fNext);
  464.          =OS/2:
  465.          =  WinSendMsg(hwnd, WM_MDINEXT, hwndDoc, fNext);
  466. .Prototyp=Document handle = (HWND)mp1
  467.          =Next/Previous flag = (BOOL)mp2
  468. .Template=wm_mdinext
  469. .Command =SmMigrateKeyword($T1)
  470.  
  471.  
  472. .Keyword =020 000 215 WM_MDIRESTORE
  473. .SComment=Replace with WM_MDIRESTORE
  474. .LComment=Replace with WM_MDIRESTORE
  475. .Sample  =Windows:
  476.          =  SendMessage(hwnd, WM_MDIRESTORE, hwndDoc, 0);
  477.          =OS/2:
  478.          =  WinSendMsg(hwnd, WM_MDIRESTORE, hwndDoc, 0);
  479. .Prototyp=Document handle = (HWND)mp1
  480.          =Unused = mp2
  481. .Template=wm_mdirestore
  482. .Command =SmMigrateKeyword($T1)
  483.  
  484.  
  485. .Keyword =020 000 215 WM_MDISETMENU
  486. .SComment=Replace with WM_MDISETMENU noting parameter differences
  487. .LComment=Replace with WM_MDISETMENU noting parameter differences.
  488.          =The refresh flag is not needed since OS/2 refreshes the
  489.          =menu automatically.  The popup context menu must be handled
  490.          =seperately from this message.  When a document window receives
  491.          =the WM_CONTEXTMENU message, the appropriate popup menu should
  492.          =be created for the document window with WinPopupMenu.
  493. .Sample  =Windows:
  494.          =  SendMessage(hwnd, WM_MDISETMENU, fRefresh, MAKELPARAM(hMenuFrame, hMenuWindow));
  495.          =OS/2:
  496.          =  WinSendMsg(hwnd, WM_MDISETMENU, hMenuFrame, 0);
  497. .Prototyp=Handle to new menu = (HWND)mp1
  498.          =Unused = mp2
  499. .Template=wm_mdisetmenu
  500. .Command =SmMigrateKeyword($T1)
  501.  
  502.  
  503. .Keyword =020 000 215 WM_MDITILE
  504. .SComment=Replace with WM_MDITILE
  505. .LComment=Replace with WM_MDITILE
  506. .Sample  =Windows:
  507.          =  SendMessage(hwnd, WM_MDITILE, MDITILE_HORIZONTAL, 0);
  508.          =OS/2:
  509.          =  WinSendMsg(hwnd, WM_MDITILE, MDITILE_HORIZONTAL, 0);
  510. .Prototyp=Tiling flag = (ULONG)mp1;
  511.          =Unused = mp2;
  512. .Template=wm_mditile
  513. .Command =SmMigrateKeyword($T1)
  514.  
  515.  
  516. .Keyword =030 020 215 MDICREATESTRUCT
  517. .SComment=Replace with MDICREATESTRUCT noting the difference in fields
  518. .LComment=Replace with MDICREATESTRUCT noting the difference in fields.
  519.          =Several fields have been added, changed, or removed in the structure.
  520. .Sample  =Windows:
  521.          =  MDICREATESTRUCT mcs;
  522.          =  mcs.szClass = "MdiExampDoc";
  523.          =  mcs.szTitle = "Example Document";
  524.          =  mcs.hOwner  = hInst;
  525.          =  mcs.x       = CW_USEDEFAULT;
  526.          =  mcs.y       = CW_USEDEFAULT;
  527.          =  mcs.cx      = CW_USEDEFAULT;
  528.          =  mcs.cy      = CW_USEDEFAULT;
  529.          =  mcs.style   = 0;
  530.          =  mcs.lParam  = NULL;
  531.          =OS/2:
  532.          =  MDICREATESTRUCT mcs;
  533.          =  mcs.cbSize       = sizeof mcs;
  534.          =  mcs.pszClass     = "MdiExampDoc";
  535.          =  mcs.pszTitle     = "Example Document";
  536.          =  mcs.hwndOwner    = hwnd;
  537.          =  mcs.x            = CW_USEDEFAULT;
  538.          =  mcs.y            = CW_USEDEFAULT;
  539.          =  mcs.cx           = CW_USEDEFAULT;
  540.          =  mcs.cy           = CW_USEDEFAULT;
  541.          =  mcs.fFrameStyle  = WS_VISIBLE | FS_NOBYTEALIGN;
  542.          =  mcs.fClientStyle = WS_VISIBLE | FS_NOBYTEALIGN;
  543.          =  mcs.fFrameFlags  = FCF_STANDARD;
  544.          =  mcs.id = CHILD_RESOURCE_ID;
  545. .Prototyp=Structure size in bytes    = cbSize
  546.          =Document class name string = pszClass
  547.          =Document title string      = pszTitle
  548.          =Server window handle       = hwndOwner
  549.          =Left edge of document      = x
  550.          =Bottom edge of document    = y
  551.          =Width of document          = cx
  552.          =Height of document         = cy
  553.          =Frame style of document    = fFrameStyle
  554.          =Client style of document   = fClientStyle
  555.          =Frame appearance flag      = fFrameFlags
  556.          =Resource ID of document    = id
  557. .Template=mdicreatestruct
  558. .Command =SmMigrateKeyword($T1)
  559.  
  560.  
  561. .Keyword =030 020 215 LPMDICREATESTRUCT
  562. .SComment=Replace with MDICREATESTRUCT * noting the difference in fields
  563. .LComment=Replace with MDICREATESTRUCT * noting the difference in fields.
  564.          =Several fields have been added, changed, or removed in the structure.
  565. .Sample  =Windows:
  566.          =  LPMDICREATESTRUCT lpmcs;
  567.          =  lpmcs->szClass = "MdiExampDoc";
  568.          =  lpmcs->szTitle = "Example Document";
  569.          =  lpmcs->hOwner  = hInst;
  570.          =  lpmcs->x       = CW_USEDEFAULT;
  571.          =  lpmcs->y       = CW_USEDEFAULT;
  572.          =  lpmcs->cx      = CW_USEDEFAULT;
  573.          =  lpmcs->cy      = CW_USEDEFAULT;
  574.          =  lpmcs->style   = 0;
  575.          =  lpmcs->lParam  = NULL;
  576.          =OS/2:
  577.          =  LPMDICREATESTRUCT * lpmcs;
  578.          =  lpmcs.cbSize       = sizeof mcs;
  579.          =  lpmcs.pszClass     = "MdiExampDoc";
  580.          =  lpmcs.pszTitle     = "Example Document";
  581.          =  lpmcs.hwndOwner    = hwnd;
  582.          =  lpmcs.x            = CW_USEDEFAULT;
  583.          =  lpmcs.y            = CW_USEDEFAULT;
  584.          =  lpmcs.cx           = CW_USEDEFAULT;
  585.          =  lpmcs.cy           = CW_USEDEFAULT;
  586.          =  lpmcs.fFrameStyle  = WS_VISIBLE | FS_NOBYTEALIGN;
  587.          =  lpmcs.fClientStyle = WS_VISIBLE | FS_NOBYTEALIGN;
  588.          =  lpmcs.fFrameFlags  = FCF_STANDARD;
  589.          =  lpmcs.id = CHILD_RESOURCE_ID;
  590. .Prototyp=Structure size in bytes    = cbSize
  591.          =Document class name string = pszClass
  592.          =Document title string      = pszTitle
  593.          =Server window handle       = hwndOwner
  594.          =Left edge of document      = x
  595.          =Bottom edge of document    = y
  596.          =Width of document          = cx
  597.          =Height of document         = cy
  598.          =Frame style of document    = fFrameStyle
  599.          =Client style of document   = fClientStyle
  600.          =Frame appearance flag      = fFrameFlags
  601.          =Resource ID of document    = id
  602. .Template=mdicreatestruct *
  603. .Command =SmMigrateKeyword($T1)
  604.  
  605.  
  606. .Keyword =030 040 215 CLIENTCREATESTRUCT
  607. .SComment=Remove the use of this structure
  608. .LComment=Remove the use of this structure. The client structure is
  609.          =not needed since the client is created along with the frame
  610.          =window during the WinCreateStdWindow call.
  611. .Sample  =Windows:
  612.          =  CLIENTCREATESTRUCT ccs;
  613.          =  ccs.hWindowMenu  = hWinMenu;
  614.          =  ccs.idFirstChild = IDM_FIRSTCHILD;
  615.          =OS/2:
  616.          =  Not applicable
  617. .Prototyp=*** N/A ***
  618. .Template=
  619. .Command =IF $KIND = "TRUE" THEN
  620.          =  DO
  621.          =    SmRemove(LINE)
  622.          =    NOTE = "The source line has been removed for " $KEY
  623.          =    SmOutputNote(NOTE)
  624.          =  END
  625.          =ELSE
  626.          =  DO
  627.          =    NOTE1 = "WARNING: " $KEY " has been removed from imbedded code."
  628.          =    NOTE2 = "The code must be changed to accomodate the removal of this keyword."
  629.          =    SmOutputNote(NOTE1)
  630.          =    SmOutputNote(NOTE2)
  631.          =  END
  632.          =NOTE1 = "NOTE: Be sure to remove any use of this structure in the code."
  633.          =NOTE2 = "The client structure is not needed since the client is created"
  634.          =NOTE3 = "along with the frame window during the WinCreateStdWindow call."
  635.          =SmOutputNote(NOTE1)
  636.          =SmOutputNote(NOTE2)
  637.          =SmOutputNote(NOTE3)
  638.  
  639.  
  640. .Keyword =030 040 215 LPCLIENTCREATESTRUCT
  641. .SComment=Remove the use of this structure pointer
  642. .LComment=Remove the use of this structure pointer. The client structure is
  643.          =not needed since the client is created along with the frame
  644.          =window during the WinCreateStdWindow call.
  645. .Sample  =Windows:
  646.          =  LPCLIENTCREATESTRUCT lpccs;
  647.          =  lpccs->hWindowMenu  = hWinMenu;
  648.          =  lpccs->idFirstChild = IDM_FIRSTCHILD;
  649.          =OS/2:
  650.          =  Not applicable
  651. .Prototyp=*** N/A ***
  652. .Template=
  653. .Command =IF $KIND = "TRUE" THEN
  654.          =  DO
  655.          =    SmRemove(LINE)
  656.          =    NOTE = "The source line has been removed for " $KEY
  657.          =    SmOutputNote(NOTE)
  658.          =  END
  659.          =ELSE
  660.          =  DO
  661.          =    NOTE1 = "WARNING: " $KEY " has been removed from imbedded code."
  662.          =    NOTE2 = "The code must be changed to accomodate the removal of this keyword."
  663.          =    SmOutputNote(NOTE1)
  664.          =    SmOutputNote(NOTE2)
  665.          =  END
  666.          =NOTE1 = "NOTE: Be sure to remove any use of this structure pointer in the code."
  667.          =NOTE2 = "The client structure is not needed since the client is created"
  668.          =NOTE3 = "along with the frame window during the WinCreateStdWindow call."
  669.          =SmOutputNote(NOTE1)
  670.          =SmOutputNote(NOTE2)
  671.          =SmOutputNote(NOTE3)
  672.