Beispiel #1
0
 /// <summary>
 /// Saves the invoke command information.
 /// </summary>
 /// <param name="isUnicode">if set to <c>true</c> the unicode structure is used.</param>
 /// <param name="ici">The ici.</param>
 /// <param name="iciex">The iciex.</param>
 private void SaveInvokeCommandInfo(bool isUnicode, CMINVOKECOMMANDINFO ici, CMINVOKECOMMANDINFOEX iciex)
 {
     if (isUnicode)
     {
         //  Create command info from the Unicode structure.
         currentInvokeCommandInfo = new InvokeCommandInfo
         {
             WindowHandle = iciex.hwnd,
             ShowCommand  = iciex.nShow
         };
     }
     else
     {
         //  Create command info from the ANSI structure.
         currentInvokeCommandInfo = new InvokeCommandInfo
         {
             WindowHandle = ici.hwnd,
             ShowCommand  = ici.nShow
         };
     }
 }
 /// <summary>
 /// Saves the invoke command information.
 /// </summary>
 /// <param name="isUnicode">if set to <c>true</c> the unicode structure is used.</param>
 /// <param name="ici">The ici.</param>
 /// <param name="iciex">The iciex.</param>
 private void SaveInvokeCommandInfo(bool isUnicode, CMINVOKECOMMANDINFO ici, CMINVOKECOMMANDINFOEX iciex)
 {
     if (isUnicode)
     {
         //  Create command info from the Unicode structure.
         currentInvokeCommandInfo = new InvokeCommandInfo
         {
             WindowHandle = iciex.hwnd,
             ShowCommand = iciex.nShow
         };
     }
     else
     {
         //  Create command info from the ANSI structure.
         currentInvokeCommandInfo = new InvokeCommandInfo
         {
             WindowHandle = ici.hwnd,
             ShowCommand = ici.nShow
         };
     }
 }