Esempio n. 1
0
 public RECT(Win32Api.RECT rcSrc)
 {
     this.left = rcSrc.left;
     this.top = rcSrc.top;
     this.right = rcSrc.right;
     this.bottom = rcSrc.bottom;
 }
Esempio n. 2
0
 public COLORREF(Win32Api.COLORREF cr)
 {
     this.cr = cr.cr;
 }
Esempio n. 3
0
 public static bool ResourceExists(Win32Api.HINSTANCE hinst, string stIdentifier)
 {
     bool flag = Win32Api.FindResource(hinst.h, stIdentifier, (IntPtr)10) != IntPtr.Zero;
     if (!flag)
     {
         flag = Win32Api.FindResource(hinst.h, stIdentifier, (IntPtr)0x17) != IntPtr.Zero;
     }
     return flag;
 }
Esempio n. 4
0
 public Resource GetResource(Win32Api.HINSTANCE hinst, string stHost, string stIdentifier)
 {
     Resource resource = null;
     if (hinst != Win32Api.HINSTANCE.NULL)
     {
         //if (MarkupSystem.RedirectionPrefix != null)
         //{
         //    string str = MarkupSystem.RedirectionPrefix + stIdentifier;
         //    if (ResourceExists(hinst, str))
         //    {
         //        resource = new DllResource(hinst, stHost, str);
         //    }
         //}
         if ((resource == null) && ResourceExists(hinst, stIdentifier))
         {
             resource = new DllResource(hinst, stHost, stIdentifier);
         }
     }
     return resource;
 }
Esempio n. 5
0
 // Methods
 internal DllResource(Win32Api.HINSTANCE hinst, string stHost, string stIdentifier)
 {
     this.m_hinst = hinst;
     this.m_stHost = stHost;
     this.m_stIdentifier = stIdentifier;
 }