1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Оконный режим без рамки

Discussion in 'Архив' started by Resev, Jun 28, 2013.

Thread Status:
Not open for further replies.
  1. Resev

    Resev User

    Joined:
    04.01.13
    Messages:
    27
    Likes Received:
    5
    собственно как зделать оконный режим без рамки?
     
  2. PoisonPrince

    PoisonPrince User

    Joined:
    25.02.13
    Messages:
    1,729
    Likes Received:
    344
    borderstyle := bsnone :d
    ты у кого-то видел такой режим? думаю, подобный вариант разработчики даже не стали бы предусматривать.
     
  3. DakDF

    DakDF User

    Joined:
    01.04.10
    Messages:
    822
    Likes Received:
    356
    окно без рамы - нонсенс.

    не ну если очень хочеться то:
    разобраться с findwindow->enumchildwindows ->getdlgitem->sendmessage

    первый попавшийся в нете код на c#
    Code:
    [dllimport("user32.dll")]
    public static extern int32 findwindow(string lpclassname,string lpwindowname);
    [dllimport("user32.dll")]
    public static extern boolean enumchildwindows(int hwndparent,delegate lpenumfunc,int lparam);
    [dllimport("user32.dll")]
    [dllimport("user32.dll", charset = charset.auto)]
     static extern int sendmessagea(intptr hwnd, int wmsg, int wparam, uint lparam);
     [dllimport("user32.dll", charset = charset.auto)]
     public static extern intptr getdlgitem(int hwnd, int childid);
    ...............
    int hwnd;
    public delegate int callback(int hwnd,int lparam);
    callback mycallback = new callback(enumchildgetvalue);
    hwnd = win32.findwindow(null,"callingwindow");
    enumchildwindows(hwnd,mycallback,0);
    .........
    public int enumchildgetvalue(int hwnd,int lparam)
    {
    intptr ptrtest = getdlgitem(hwnd, intcid);
            sendmessagea(..............);
     
    return 1;
    }
    
     
    Last edited by a moderator: Jun 28, 2013
Thread Status:
Not open for further replies.