1 0

?

 -

 -

, , ,
   __

 - e-mail

 
.

 -

 LiveInternet.ru:
: 18.10.2006
: 24
: 41
: 48
:

__

: (24) ->
   __
: [1] RSS -  __

(0)

, 02 2011 . 10:42 () +
_ !

(1)

-

, 10 2010 . 20:23 () +
nina_benoit , ! - , , . . ((( -
HTML

(0)

SOS!! !!

, 05 2008 . 21:54 () +
sweetie_girl_probably
, "", . , . , , ))))) , -!!!! , ...


1, , 60. , . :

(1)

, 14 2008 . 18:40 () +
shyboywins . line-in ??? !

(0)

, 25 2008 . 15:35 () +
_ , Win98 WinXP. .

1) BorderStyle=0 ()
2) Picture :
- BorderU
- BorderD
- BorderL
- BorderR
- BorderS
- Header
3) (General)(Declaration):
Private Declare Function ReleaseCapture Lib "user32" () As Long
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long

4):
Private Sub HeadBar_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
'
ReleaseCapture
SendMessage Me.hwnd, &HA1, 2, 0&
End Sub

Private Sub BorderD_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
ReleaseCapture
If Button = 1 Then
SendMessage Me.hwnd, &HA1, 15, 0& '
Else
SendMessage Me.hwnd, &HA1, 12, 0& '
End If
End Sub

Private Sub BorderR_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
ReleaseCapture
If Button = 1 Then
SendMessage Me.hwnd, &HA1, 11, 0& '11
Else
SendMessage Me.hwnd, &HA1, 10, 0& '11
End If
End Sub

Private Sub BorderS_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
ReleaseCapture
If Button = 1 Then
SendMessage Me.hwnd, &HA1, 17, 0& '
Else
SendMessage Me.hwnd, &HA1, 13, 0& '
End If
End Sub

Private Sub Form_Resize()
Dim i As Integer, w As Single
BorderU.Move 0, 0, Me.ScaleWidth, 120
HeadBar.Move BorderU.Left, BorderU.Height, BorderU.Width - 240,480
BorderL.Move 0, 120, 120, Me.ScaleHeight - 240
BorderR.Move Me.ScaleWidth - 120, 120, 120, Me.ScaleHeight - 240
BorderD.Move 0, Me.ScaleHeight - 120, Me.ScaleWidth - 120, 120
BorderS.Move Me.ScaleWidth - 120, Me.ScaleHeight - 120
End Sub

5) .Line ( AutoRedraw = True)
6) .
VBasic

(2)

, 26 2008 . 15:54 () +
_
#include "stdio.h"
#include "conio.h"
#include "stdlib.h"
void help(void)
{
	puts("   DOS(CP866),Windows(CP1251)  -8");
	puts(" : CONVERT - - ");
	puts("   :");
	puts("dw -  DOSa  Windows");
	puts("dk -  DOSa  -8");
	puts("wd -  Windows  DOS");
	puts("wk -  Windows  -8");
	puts("kd -  -8  DOS");
	puts("kw -  -8  Windows");
	puts("   -  ");
	puts("     ,  UNIX  DOS(Windows)");
	puts("ud -  UNIXa  DOS");
	puts("du -  DOSa  UNIX");
	puts("    - ");
	getch();
	exit(255);
}
void main(int argc,char *argv[])
{
	FILE *in,*out;
	long i,t=0,m=0,j;
	char dw[]={"L+T+-+LT=+TTLL-++-----###=============#####v-լ?"};
	char dk[]={"v+T+-+-T=+-+-嬬----TLL-L+---+-LT֬"};
	char wd[]={"??'?\".++%???????|c\"-R?Ii?u\"???"};
	char wk[]={"??'?\".-%???????|c\"-R?Ii?u\"???v+T+-+-T=+TLL-L+---+-LT"};
	char kd[]={"--L-++T++------v=-㬬LLL---TTT+++"};
	char kw[]={"########?-=============榦vL+-+L+-LT=+-TTLT--+-+-"};
	char *pointer,mode[80];

	if(argc==3)strcpy(mode,argv[2]);
	else
	{
		if(argc==4)strcpy(mode,argv[3]);
		else
		{
			printf("Invalid number of parameters %d\n",argc);
			help();
		}
	}
	pointer=NULL;
	if(strcmp(mode,"du")==0)m=1;
	if(strcmp(mode,"ud")==0)m=2;
	if(strcmp(mode,"dw")==0)pointer=dw;
	if(strcmp(mode,"dk")==0)pointer=dk;
	if(strcmp(mode,"wd")==0)pointer=wd;
	if(strcmp(mode,"wk")==0)pointer=wk;
	if(strcmp(mode,"kd")==0)pointer=kd;
	if(strcmp(mode,"kw")==0)pointer=kw;
	if(pointer==NULL&&m==0)
	{
		printf("Error convertion mode:%s\n",argv[3]);
		help();
	}
	if(m!=0&&argc!=4)
	{
		printf("Invalid number of parameters %d\n",argc);
		help();
	}
	if((in=fopen(argv[1],"r+b"))==NULL)
	{
		printf("Can't open file %s\n",argv[1]);
		help();
	}
	if(argc==4)
	{
		if((out=fopen(argv[2],"wb"))==NULL)
		{
			printf("Can't open file %s\n",argv[2]);
			help();
		}
	}
	else out=in;
	i=0;
	j=0;
	while(feof(in)==0)
	{
		fseek(in,i,SEEK_SET);
		fread(&t,1,1,in);
		if(feof(in)==0)
		{
			fseek(out,j,SEEK_SET);
			if(m==0)
			{
				if(t<128)fprintf(out,"%c",t);
				else fprintf(out,"%c",*(pointer+t-128));
			}
			if(m==1)
			{
				if(t!=13)fprintf(out,"%c",t);
				else j--;
			}
			if(m==2)
			{
				if(t!=10)fprintf(out,"%c",t);
				else
				{
					fprintf(out,"%c%c",13,10);
					j++;
				}
			}
		}
		i++;
		j++;
	}
}
VC++

(0)

, 20 2008 . 13:24 () +
_
ZIP-
.




ZIP-
.

ZIP
:

LOCREC, CENTREC, ENDREC, EXTREC

'PK'
(0x504B) :

    (0x0102) - CENTREC

    (0x0304) - LOCREC

    (0x0506) - ENDREC

    (0x0708) - EXTREC



LOCREC ( 1
() .)


:

- Version_Need_to_Extract_0 (1 )

- Version_Need_to_Extract_1 (1 )

    Unzip
(Version_Need_to_Extract_0 / 10 + Version_Need_to_Extract_1 % 10)

- General_PurPose_Bit_Flag (2 )

    ,
()


- Compression_Method (2 )

    :

       
STORED = 0 ( )

        SHRUNK = 1

        REDUCED1 = 2

        REDUCED2 = 3

        REDUCED3 = 4

        REDUCED4 = 5

        IMPLODED = 6

        TOKENIZED = 7

        DEFLATED = 8

        ENHDEFLATED = 9

        DCLIMPLODED = 10

        PKRESMOD11 = 11

        BZIP2ED = 12

        NUM_METHODS = 13


- Last_Mod_DOS_DateTime (4 )

   
DOS

- CRC32 (4 )

   

- Compressed_Size (4 )

   

- Uncompressed_Size (4 )

    ()


- FileName_Length (2 )

    (
)

- Extra_Filed_Length (2 )

   

- Patch_and_FileName (
FileName_Length)

   


- Extra_Filed (
Extra_Filed_Length > 0)

   

- File_Pack (
Compressed_Size)

    (
Compression_Method = 0) . (
)


: General_PurPose_Bit_Flag
(0x8), CRC32, Compressed_Size
Uncompressed_Size LOCREC ,
CENREC




CENREC ( 1
() .)


:


- Version_Made_By_0 (1 )

- Versoin_Made_By_1 (1 )

    Zip
(Version_Made_By_0 / 10 + Version_Made_By_1 % 10)

- Version_Need_to_Extract_0 (1 )

- Version_Need_to_Extract_1 (1 )

    Unzip
(Version_Need_to_Extract_0 / 10 + Version_Need_to_Extract_1 % 10)

- General_PurPose_Bit_Flag (2 )

    ,
()


- Compression_Method (2 )

   

- Last_Mod_DOS_DateTime (4 )

   
DOS

- CRC32 (4 )

   

- Compressed_Size (4 )

   

- Uncompressed_Size (4 )

    ()


- FileName_Length (2 )

    (
)

- Extra_Filed_Length (2 )

   

- File_Comments_Length (2 )

   

- Disk_Number_Start (2 )

- Internal_File_Attributes (2 )

- External_File_Attributes (4 )

- Relative_Offset_Local_Header (4 )

    LOCREC


- Patch_and_FileName (
FileName_Length)

   


- Extra_Filed (
Extra_Filed_Length > 0)

   

 

ENDREC (1 )


:


- Number_This_Disk (2 )

- Num_Disk_With_Start_Central_Dir (2 )

- Num_Entries_Centrl_Disk_Dir_Ths_Disk (2 )

- Total_Entries_Central_Dir (2 )

    ( )


- Size_Central_Directory (4 )

- Offset_start_Central_Directory (4 )

- ZipFile_Comment_Length (2 )

    (
62000 )

- Comment (
ZipFile_Comments_Length)

   



EXTREC ( 1 ,
, )


:


- CRC32 (4 )

   

- Compressed_Size (4 )

   

- Uncompressed_Size (4 )

   

ZIP

:  
(1)

.

, 11 2008 . 15:16 () +
_ -
-

. (((
Document

:  
(2)

++. !!

, 21 2007 . 17:28 () +
Flame777 ++ , , ?! , !!
VC++

(3)

, 04 2007 . 13:47 () +
__ , . :

 (485x509, 63Kb)
JavaScript

(0)

.

, 17 2007 . 15:41 () +
_ (rtf)

: RTB - rtfText, SB - , 2 (
/ /  



Private Declare Function
SendMessage Lib "user32" Alias
"SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
  

Private
Col As Integer, Row As Integer
 


Private
mCol As Integer, mRow As Integer


 


Private Sub
RTB_Click() 

    Call
ChangeStatus 

End Sub

 
 


Private Sub
RTB_KeyUp(KeyCode As Integer, Shift As Integer

    Call
ChangeStatus 

End Sub

 

Private Sub
ChangeStatus() 

  Dim
i As Integer, iChar As Integer, cChar As Integer
 


  Dim
str1 As String
 
    mRow = (SendMessage(RTB.hwnd, &HBA, 0, 0&)) '

    Row = 1 + SendMessage(RTB.hwnd, &HC9, (RTB.SelStart), 0&) '  

    'Row = RTB.GetLineFromChar(RTB.SelStart) ' API
 
    mCol = SendMessage(RTB.hwnd, &HC1, (RTB.SelStart), 0&) + 1 '

    Col = RTB.SelStart - SendMessage(RTB.hwnd, &HBB, (Row - 1), 0&) + 1 '  

    '----------------------- 
    SB.Panels(1).Text = "Row: " & CStr(Row) & "/" & CStr(mRow) 
    SB.Panels(2).Text = "Col: " & CStr(Col) & "/" & CStr(mCol) 

End Sub
VBasic

(4)

, 27 2007 . 15:29 () +
_ windows: ( : . Esc)Option Explicit








'
Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long

'
Const SWP_NOSIZE = &H1 '
Const SWP_NOMOVE = &H2 '

'

Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" _
(ByVal lpClassName As String, ByVal lpWindowName As String) As Long

'

Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" _
(ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Long

'
Private Declare Function GetCursorPos Lib "user32" (lpPoint As POINTAPI) As Long
' POINTAPI
Private Type POINTAPI
x As Long
y As Long
End Type

'
Private Declare Function WindowFromPoint Lib "user32" (ByVal xPoint As Long, ByVal yPoint As Long) As Long

'
Private Declare Function GetDesktopWindow Lib "user32" () As Long
'
Private Declare Function SetParent Lib "user32" (ByVal hWndChild As Long, ByVal hWndNewParent As Long) As Long

'
Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer

Const VK_ESCAPE = &H1B


Dim hnd As Long

Private Sub Form_Load()
'
' "BUTTON", "Shell_TrayWnd"
'
hnd = FindWindow("Shell_TrayWnd", vbNullString)
'
hnd = FindWindowEx(hnd, 0, "BUTTON", vbNullString)
End Sub

Private Sub tmrAntiStart_Timer()
Dim hwnd As Long
Dim Curs As POINTAPI
'
GetCursorPos Curs
'
hwnd = WindowFromPoint(Curs.x, Curs.y)

If hnd = hwnd Then
'
SetWindowPos hwnd, 0, Int(800 * Rnd + 1), Int(600 * Rnd + 1), 0, 0, SWP_NOSIZE
'
SetParent hnd, GetDesktopWindow
End If

'

If GetAsyncKeyState(VK_ESCAPE) Then
SetParent hnd, FindWindow("Shell_TrayWnd", vbNullString) ' !
SetWindowPos hnd, 0, 0, 0, 0, 0, SWP_NOSIZE
End
End If

End Sub
VBasic

(1)

, 16 2007 . 09:06 () +
_ : :
1)
2)
Ps, - ( , , ), , , : 1) VBasic 2) HTML 3) Document 4) VC++ 5) Delphi
- .

_
Document

(5)

, 14 2007 . 16:42 () +
_ :
caption - ( )

colgroup col - () . CSS , . .

thead ( ), tbody ( ), tfoot ( ) - , .
tfoot tbody, thead, .

tr -
td, th - , .
HTML

(3)

, 14 2007 . 16:10 () +
_ : ( , . . , , , , ...) <table border="1" width="80%" align="center"> __<caption> </caption> __<colgroup class="name"> __</colgroup> __<colgroup class="price"> ____<col class="rubles"> ____</col> ____<col class="dollar"> ____</col> ____<col class="tugric"> ____</col> __</colgroup> __<colgroup class="warrinty"> __</colgroup> __<thead> ____<tr> ______<th rowspan="2"></th> ______<th colspan="3"></th> ______<th rowspan="2">, </th> ____</tr> ____<tr> ______<th></th> ______<th></th> ______<th></th> __</tr> __</thead> __<tfoot> ____<tr> ______<th></th> ______<td>100</td> ______<td>200</td> ______<td>300</td> ______<td>&nbsp;</td> ____</tr> __</tfoot> __<tbody> ____<tr> ______<td> 1</td> ______<td>10</td> ______<td>20</td> ______<td>30</td> ______<td>6</td> ____</tr> ____<tr> ______<td> 2</td> ______<td>15</td> ______<td>25</td> ______<td>35</td> ______<td>6</td> ____</tr> ____<tr> ______<td> 3</td> ______<td>17</td> ______<td>27</td> ______<td>37</td> ______<td>6</td> ____</tr> ____<tr> ______<td> 4</td> ______<td>99</td> ______<td>120</td> ______<td>130</td> ______<td>6</td> ____</tr> __</tbody> </table>
HTML

(0)

html

, 14 2007 . 15:46 () +
_ HTML.
:
 (700x182, 26Kb)
HTML

(0)

, 19 2007 . 14:05 () +
_ :
Dim MenuMainList(1 To 7) As String
Dim menuMainTag As Boolean
Dim numPopMenu As Integer '

Private Sub Form_Load()
Call LoadIni
End Sub

Private Sub imgMenu_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
    ' ,
    Dim i As Integer
    For i = 1 To 7
        MenuMainLineLt(i).Visible = False
        MenuMainLineUp(i).Visible = False
        MenuMainLineRt(i).Visible = False
        MenuMainLineDn(i).Visible = False
        MenuMainLineSD(i).Visible = False
        MenuMainLineSR(i).Visible = False
    Next
End Sub

Private Sub imgTopHead_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
    If Me.WindowState <> 0 Then Exit Sub
    ReleaseCapture
    SendMessage Me.hWnd, &H112, &HF012, 0
    Call RedrawMe
End Sub

Private Sub RedrawMe()
    Dim i As Integer, k As Integer
    '
    '
    '
    imgMenu.Move imgFrameLt.Width, imgTopHead.Height, Me.Width - imgFrameLt.Width - imgFrameRt.Width, 800
    '
    
    For i = 1 To 7 '
        MenuMainCapt(i).Caption = MenuMainList(i)
        MenuMainCaptS(i).Caption = MenuMainList(i)
        MenuMainCapt(i).Move 60, 30
        MenuMainCaptS(i).Move 75, 45
        MenuMainLineLt(i).X1 = MenuMainCapt(i).Left - 60
        MenuMainLineLt(i).X2 = MenuMainCapt(i).Left - 60
        MenuMainLineLt(i).Y1 = MenuMainCapt(i).Top - 30
        MenuMainLineLt(i).Y2 = MenuMainCapt(i).Top + MenuMainCapt(i).Height + 30
        MenuMainLineUp(i).X1 = MenuMainCapt(i).Left - 60
        MenuMainLineUp(i).X2 = MenuMainCapt(i).Left + MenuMainCapt(i).Width + 60
        MenuMainLineUp(i).Y1 = MenuMainCapt(i).Top - 30
        MenuMainLineUp(i).Y2 = MenuMainCapt(i).Top - 30
        MenuMainLineRt(i).X1 = MenuMainCapt(i).Left + MenuMainCapt(i).Width + 60
        MenuMainLineRt(i).X2 = MenuMainCapt(i).Left + MenuMainCapt(i).Width + 60
        MenuMainLineRt(i).Y1 = MenuMainCapt(i).Top - 30
        MenuMainLineRt(i).Y2 = MenuMainCapt(i).Top + MenuMainCapt(i).Height + 30
        MenuMainLineDn(i).X1 = MenuMainCapt(i).Left - 60
        MenuMainLineDn(i).X2 = MenuMainCapt(i).Left + MenuMainCapt(i).Width + 60
        MenuMainLineDn(i).Y1 = MenuMainCapt(i).Top + MenuMainCapt(i).Height + 30
        MenuMainLineDn(i).Y2 = MenuMainCapt(i).Top + MenuMainCapt(i).Height + 30
        MenuMainLineSD(i).X1 = MenuMainLineDn(i).X1 + 60
        MenuMainLineSD(i).X2 = MenuMainLineDn(i).X2 + 60
        MenuMainLineSD(i).Y1 = MenuMainLineDn(i).Y1 + 60
        MenuMainLineSD(i).Y2 = MenuMainLineDn(i).Y1 + 60
        MenuMainLineSR(i).X1 = MenuMainLineRt(i).X1 + 60
        MenuMainLineSR(i).X2 = MenuMainLineRt(i).X2 + 60
        MenuMainLineSR(i).Y1 = MenuMainLineRt(i).Y1 + 60
        MenuMainLineSR(i).Y2 = MenuMainLineRt(i).Y2 + 60
        If i = 1 Then
            MenuMainItem(1).Move 120, imgTopHead.Height + 30, MenuMainLineSR(i).X2 + 15, MenuMainLineSD(i).Y2 + 15
        Else
            MenuMainItem(i).Move MenuMainItem(i - 1).Left + MenuMainItem(i - 1).Width + 60, MenuMainItem(i - 1).Top, MenuMainLineSR(i).X2 + 15, MenuMainLineSD(i).Y2 + 15
        End If
        MenuMainItem(i).Visible = True
    Next
    '
    MenuMainLineBk(1).X1 = 60
    MenuMainLineBk(1).X2 = Me.ScaleWidth - 60
    MenuMainLineBk(1).Y1 = MenuMainItem(1).Height + 2 * Screen.TwipsPerPixelY
    MenuMainLineBk(1).Y2 = MenuMainLineBk(1).Y1
    MenuMainLineBk(2).X1 = 60
    MenuMainLineBk(2).X2 = Me.ScaleWidth - 60
    MenuMainLineBk(2).Y1 = MenuMainLineBk(1).Y1 + Screen.TwipsPerPixelY
    MenuMainLineBk(2).Y2 = MenuMainLineBk(2).Y1
End Sub

Private Sub LoadIni()
    ' , ini-,
    MenuMainList(1) = "Left"
    MenuMainList(2) = "Main"
    MenuMainList(3) = "User"
    MenuMainList(4) = "Tools"
    MenuMainList(5) = "Setup"
    MenuMainList(6) = "Help"
    MenuMainList(7) = "Right"
    '
End Sub

'
Private Sub MenuMainCapt_MouseMove(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
    '
    Dim i As Integer
    For i = 1 To 7 '
        MenuMainLineLt(i).Visible = False
        MenuMainLineUp(i).Visible = False
        MenuMainLineRt(i).Visible = False
        MenuMainLineDn(i).Visible = False
        MenuMainCapt(i).ForeColor = &H80000012
        MenuMainCaptS(i).ForeColor = &H8000000E
        MenuMainLineSD(i).Visible = False
        MenuMainLineSR(i).Visible = False
    Next
    If menuMainTag Then
        '
        MenuMainLineLt(Index).BorderColor = &H80000008
        MenuMainLineUp(Index).BorderColor = &H80000008
        MenuMainLineRt(Index).BorderColor = &H8000000E
        MenuMainLineDn(Index).BorderColor = &H8000000E
        MenuMainCapt(Index).ForeColor = &H8000000E
        MenuMainCaptS(Index).ForeColor = &H80000012
    Else
        '
        MenuMainLineLt(Index).BorderColor = &H8000000E
        MenuMainLineUp(Index).BorderColor = &H8000000E
        MenuMainLineRt(Index).BorderColor = &H80000008
        MenuMainLineDn(Index).BorderColor = &H80000008
        MenuMainCapt(Index).ForeColor = &H80000012
        MenuMainCaptS(Index).ForeColor = &H8000000E
        MenuMainLineSD(Index).Visible = True
        MenuMainLineSR(Index).Visible = True
    End If
    MenuMainLineLt(Index).Visible = True
    MenuMainLineUp(Index).Visible = True
    MenuMainLineRt(Index).Visible = True
    MenuMainLineDn(Index).Visible = True
End Sub

Private Sub MenuMainCapt_MouseDown(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
    ' ,
    MenuMainLineLt(Index).BorderColor = &H80000008
    MenuMainLineUp(Index).BorderColor = &H80000008
    MenuMainLineRt(Index).BorderColor = &H8000000E
    MenuMainLineDn(Index).BorderColor = &H8000000E
    MenuMainCapt(Index).ForeColor = RGB(0, 0, 255)
    MenuMainCaptS(Index).ForeColor = &H80000012
    'MenuMainLineLt(Index).Visible = True
    'MenuMainLineUp(Index).Visible = True
    'MenuMainLineRt(Index).Visible = True
    'MenuMainLineDn(Index).Visible = True
    MenuMainLineSD(Index).Visible = False
    MenuMainLineSR(Index).Visible = False
End Sub

Private Sub MenuMainCapt_MouseUp(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
    ' -
 
    If Index = numPopMenu Then
        If menuMainTag Then        
            MenuMainCapt(Index).ForeColor = &H80000012
            MenuMainCaptS(Index).ForeColor = &H8000000E
            MenuMainLineLt(Index).Visible = False
            MenuMainLineUp(Index).Visible = False
            MenuMainLineRt(Index).Visible = False
            MenuMainLineDn(Index).Visible = False
            Call MenuMain_Hide(Index)
        Else
            MenuMainLineLt(Index).BorderColor = &H80000008
            MenuMainLineUp(Index).BorderColor = &H80000008
            MenuMainLineRt(Index).BorderColor = &H8000000E
            MenuMainLineDn(Index).BorderColor = &H8000000E
            MenuMainCapt(Index).ForeColor = &H8000000E
            MenuMainCaptS(Index).ForeColor = &H80000012
            MenuMainLineLt(Index).Visible = True
            MenuMainLineUp(Index).Visible = True
            MenuMainLineRt(Index).Visible = True
            MenuMainLineDn(Index).Visible = True
            Call MenuMain_Show(Index)
        End If
        menuMainTag = Not (menuMainTag)
    Else
        MenuMainLineLt(Index).BorderColor = &H80000008
        MenuMainLineUp(Index).BorderColor = &H80000008
        MenuMainLineRt(Index).BorderColor = &H8000000E
        MenuMainLineDn(Index).BorderColor = &H8000000E
        MenuMainCapt(Index).ForeColor = &H8000000E
        MenuMainCaptS(Index).ForeColor = &H80000012
        MenuMainLineLt(Index).Visible = True
        MenuMainLineUp(Index).Visible = True
        MenuMainLineRt(Index).Visible = True
        MenuMainLineDn(Index).Visible = True
        menuMainTag = True
        Call MenuMain_Show(Index)
    End If
    MenuMainLineSD(Index).Visible = False
    MenuMainLineSR(Index).Visible = False
End Sub
 
Private Sub MenuMain_Hide(Index As Integer)
    numPopMenu = 0
    PopMenu.Hide
End Sub
 
Private Sub MenuMain_Show(Index As Integer)
    ' , PopMenu
    Dim sizePopMenuW As Integer, sizePopMenuH As Integer
    numPopMenu = Index
    PopMenu.Move Me.Left + MenuMainItem(Index).Left, Me.Top + imgMenu.Top + MenuMainLineBk(2).Y1 + 4 * Screen.TwipsPerPixelX
    PopMenu.Show
End Sub
 
VBasic

(0)

, 19 2007 . 14:02 () +
_ imgToolBar :

Begin VB.PictureBox MenuMainItem
BorderStyle = 0 'None
Visible = 0 'False
Begin VB.Label MenuMainCapt
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "Menu"
End
Begin VB.Label MenuMainCaptS
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "&Menu"
ForeColor = &H8000000E&
End
Begin VB.Line MenuMainLineSD
BorderColor = &H80000010&
BorderWidth = 3
Visible = 0 'False
End
Begin VB.Line MenuMainLineSR
BorderColor = &H80000010&
BorderWidth = 3
Visible = 0 'False
End
Begin VB.Line MenuMainLineDn
Visible = 0 'False
End
Begin VB.Line MenuMainLineRt
Visible = 0 'False
End
Begin VB.Line MenuMainLineLt
BorderColor = &H8000000E&
Visible = 0 'False
End
Begin VB.Line MenuMainLineUp
BorderColor = &H8000000E&
Visible = 0 'False
End
End

.
VBasic

(1)

.

, 28 2006 . 16:40 () +
VBasic

(3)

.

, 17 2006 . 12:26 () +
_  (32x32, 1Kb)



(General) (Declarations)



Option Explicit
 

Private Declare Function
ReleaseCapture Lib "user32" () As Long 

Private Declare Function
SendMessage Lib "user32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam
As Any) As Long 

Private Declare Function
CreateRoundRectRgn Lib "gdi32" (ByVal X1 As Long, ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long, ByVal X3 As Long, ByVal Y3
As Long) As Long 

Private Declare Function
SetWindowRgn Lib "user32" (ByVal hWnd As Long, ByVal hRgn As Long, ByVal bRedraw As Boolean) As Long 


Private Type
POINTAPI 
    X As Long 
    Y As Long 
End Type 
'
Const minWidth = 4800
Const minHeight = 3200


Private Sub cmdClose_Click()
    ' ,
    End
End Sub

'
Private Sub cmdMax_Click()
    Me.WindowState = 2
    cmdMax.Visible = False
' max resrore
    cmdRest.Visible = True
    Call RedrawMe

End Sub

'
Private Sub cmdMin_Click()
    Me.WindowState = 1

End Sub

'
Private Sub cmdRest_Click()
    Me.WindowState = 0
    cmdRest.Visible = False ' resrore max
    cmdMax.Visible = True
    Call RedrawMe
End Sub
 
'

Private Sub
Form_Resize() 
    On Error Resume Next '
    '
    If Me.Width < minWidth Then Me.Width = minWidth 
    If Me.Height < minHeight Then Me.Height = minHeight 
    Dim newRgn As Long 
    ' , ,

    ' Api 
    newRgn = CreateRoundRectRgn(0, 0, Width / Screen.TwipsPerPixelX, Height / Screen.TwipsPerPixelY,
1.5 * Screen.TwipsPerPixelX, 1.5 * Screen.TwipsPerPixelY
    ': Left, Top, Width, Heigth, width , higth
    Call SetWindowRgn(hWnd, newRgn, True
    Call RedrawMe 

End Sub



'

Private Sub
imgTopHead_MouseDown(Button As Integer, Shift As Integer, X As
Single
, Y As Single
    If Me.WindowState <> 0 Then Exit Sub '
 
    ReleaseCapture
SendMessage Me.hWnd, &H112, &HF012, 0 
    Call RedrawMe 

End Sub
 
'
Private Sub
FormCapt_MouseDown(Button As Integer, Shift As Integer, X As Single, Y
As Single
    If Me.WindowState <> 0 Then Exit Sub '
 
    ReleaseCapture
SendMessage Me.hWnd, &H112, &HF012,
    Call RedrawMe 

End Sub

 


'

Private Sub
imgDnLt_MouseDown(Button As Integer, Shift As Integer, X As Single, Y
As Single
    If Me.WindowState <> 0 Then Exit Sub '
 
    ReleaseCapture 
    SendMessage Me.hWnd, &H112, &HF008, 0 
    Call RedrawMe 

End Sub
 
'
Private Sub imgFrameDn_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single
    If Me.WindowState <> 0 Then Exit Sub '
 
    ReleaseCapture 
    SendMessage Me.hWnd, &H112, &HF006, 0 
    Call RedrawMe 

End Sub
  
'


Private Sub
imgFrameLt_MouseDown(Button As Integer, Shift As Integer, X As
Single
, Y As Single
    If Me.WindowState <> 0 Then Exit Sub '
 
    ReleaseCapture 
    SendMessage Me.hWnd, &H112, &HF002, 0 
    Call RedrawMe 

End Sub
 
'


Private Sub
imgFrameRt_MouseDown(Button As Integer, Shift As Integer, X As
Single
, Y As Single
    If Me.WindowState <> 0 Then Exit Sub '
 
    ReleaseCapture 
    SendMessage Me.hWnd, &H112, &HF002, 0 
    Call RedrawMe 

End Sub
 
'


Private Sub
imgDnRt_MouseDown(Button As Integer, Shift As Integer, X As Single, Y
As Single
    If Me.WindowState <> 0 Then Exit Sub '
 
    ReleaseCapture 
    SendMessage Me.hWnd, &H112, &HF008,
    Call RedrawMe 

End Sub 



'

Private Sub
RedrawMe() 
    Dim i As Integer, k As Integer 
    '  
    imgTopHead.Width = Me.Width 
    imgTopHead.DrawWidth = Screen.TwipsPerPixelX 
    imgTopHead.ScaleWidth = 255
'
    '
   
imgTopLt.Move 0, 0 
    '  
    imgTopRt.Move Me.Width - imgTopRt.Width - Screen.TwipsPerPixelX, 0 
    '  
    cmdMin.Move imgTopHead.Width - 1060, 60 
    cmdMax.Move imgTopHead.Width - 750, 60 
    cmdRest.Move cmdMax.Left, cmdMax.Top 
    cmdClose.Move imgTopHead.Width - 390, 60 
    '  
    imgDnLt.Move 0, Me.Height - imgDnLt.Height - Screen.TwipsPerPixelY 
    '  
    imgDnRt.Move Me.Width - imgDnRt.Width - Screen.TwipsPerPixelX, Me.Height - imgDnRt.Height 
    '  
    imgFrameLt.Move 0, imgTopHead.Height, 5 * Screen.TwipsPerPixelX, Me.Height - imgTopHead.Height - imgDnLt.Height 
    imgFrameLt.Line (0, 0)-(0, imgFrameLt.Height), RGB(223, 223, 223
    imgFrameLt.Line (Screen.TwipsPerPixelX, 0)-(Screen.TwipsPerPixelX, imgFrameLt.Height),
RGB(255, 255, 255
    '  
    imgFrameRt.Move Me.Width - 5 * Screen.TwipsPerPixelX, imgTopHead.Height, 5 *
Screen.TwipsPerPixelX, Me.Height - imgTopHead.Height - imgDnRt.Height 
    imgFrameRt.Line (2 * Screen.TwipsPerPixelX, 0)-(2 * Screen.TwipsPerPixelX, imgFrameRt.Height),
RGB(127, 127, 127)    
    imgFrameRt.Line (3 * Screen.TwipsPerPixelX, 0)-(3 * Screen.TwipsPerPixelX, imgFrameRt.Height),
RGB(0, 0, 0
    '  
    imgFrameDn.Move imgDnLt.Width, Me.Height - imgFrameDn.Height - Screen.TwipsPerPixelY, Me.Width - imgDnLt.Width - imgFrameRt.Width, 5 * Screen.TwipsPerPixelY 
    imgFrameDn.Line (0, imgFrameDn.Height - Screen.TwipsPerPixelY)-(imgFrameDn.Width, imgFrameDn.Height - Screen.TwipsPerPixelY), RGB(0, 0, 0
    imgFrameDn.Line (0, imgFrameDn.Height - 2 * Screen.TwipsPerPixelY)-(imgFrameDn.Width, imgFrameDn.Height - 2 *
Screen.TwipsPerPixelY), RGB(127, 127, 127
    '  
    imgMenu.Move imgFrameLt.Width, imgTopHead.Height, Me.Width - imgFrameLt.Width - imgFrameRt.Width, 800 
    '  
    ClientArea.Move imgFrameLt.Width, imgMenu.Top + imgMenu.Height, Me.Width - imgFrameLt.Width - imgFrameRt.Width, Me.Height - imgTopHead.Height - imgMenu.Height - imgDnRt.Height - imgButt.Height 
    '  
    imgButt.Move imgFrameLt.Width, ClientArea.Top + ClientArea.Height, Me.Width - imgFrameLt.Width - imgFrameRt.Width 
    'border 
    imgTopHead.DrawWidth = 1 
    imgTopHead.ScaleWidth = imgTopHead.Width
imgTopHead.Line (0, 0)-(0, imgTopHead.Height), RGB(223, 223, 223
    imgTopHead.Line (Screen.TwipsPerPixelX, Screen.TwipsPerPixelY)-(Screen.TwipsPerPixelX, imgTopHead.Height),
RGB(255, 255, 255
    imgTopHead.Line (imgTopHead.Width - 2 * Screen.TwipsPerPixelX, Screen.TwipsPerPixelY)-(imgTopHead.Width -
2 * Screen.TwipsPerPixelX, imgTopHead.Height), RGB(127, 127, 127
    imgTopHead.Line (imgTopHead.Width - Screen.TwipsPerPixelX, 0)-(imgTopHead.Width - Screen.TwipsPerPixelX, imgTopHead.Height),
RGB(0, 0, 0
    imgTopHead.Line (0, 0)-(imgTopHead.Width, 0), RGB(223, 223, 223
    imgTopHead.Line (Screen.TwipsPerPixelX, Screen.TwipsPerPixelY)-(imgTopHead.Width - Screen.TwipsPerPixelX, Screen.TwipsPerPixelY), RGB(255, 255,
255
    imgTopHead.Line (Screen.TwipsPerPixelX, imgTopHead.Height - Screen.TwipsPerPixelY)-(imgTopHead.Width -
Screen.TwipsPerPixelX, imgTopHead.Height - Screen.TwipsPerPixelY), RGB(191,
0, 63
   'left lines 
    imgTopHead.Line (375, 120)-(750, 120), RGB(223, 223, 223
    imgTopHead.Line (375, 135)-(750, 135), RGB(127, 127, 127
    imgTopHead.Line (375, 180)-(750, 180), RGB(223, 223, 223
    imgTopHead.Line (375, 195)-(750, 195), RGB(127, 127, 127
    imgTopHead.Line (375, 240)-(750, 240), RGB(223, 223, 223
    imgTopHead.Line (375, 255)-(750, 255), RGB(127, 127, 127
    FormCapt.Move 850, 60 
    'right lines 
    imgTopHead.Line (FormCapt.Left + FormCapt.Width + 60, 120)-(imgTopHead.Width - 1200, 120), RGB(223,
223, 223
    imgTopHead.Line (FormCapt.Left + FormCapt.Width + 60, 135)-(imgTopHead.Width - 1200, 135), RGB(127,
127, 127
    imgTopHead.Line (FormCapt.Left + FormCapt.Width + 60, 180)-(imgTopHead.Width - 1200, 180), RGB(223,
223, 223
    imgTopHead.Line (FormCapt.Left + FormCapt.Width + 60, 195)-(imgTopHead.Width - 1200, 195), RGB(127, 127,
127
    imgTopHead.Line (FormCapt.Left + FormCapt.Width + 60, 240)-(imgTopHead.Width - 1200, 240), RGB(223,
223, 223
    imgTopHead.Line (FormCapt.Left + FormCapt.Width + 60, 255)-(imgTopHead.Width - 1200, 255), RGB(127,
127
, 127
End Sub
VBasic

(0)

.

, 31 2006 . 15:36 () +
_  (32x32, 1Kb)

! : 


PictureBox.Name="imgTopLt
    AutoSize = -1 ' True 
    BorderStyle = 0 ' None
    Picture = "


PictureBox.Name="imgTopRt"
     AutoSize = -1 ' True
     BorderStyle = 0 ' None
     Picture = "


PictureBox.Name="imgDnLt"
     AutoSize = -1 ' True
     BorderStyle = 0 ' None
     Picture = " "
     MousePointer = 6 ' Size NE SW 


PictureBox.Name="imgDnRt"
     AutoSize = -1 ' True
     BorderStyle = 0 ' None
     Picture = " "
     MousePointer = 8 'Size NW SE 



!
 

PictureBox.Name="imgFrameLt"
     AutoSize = -1 ' True
     BorderStyle = 0 ' None
     Picture = "(None)" ' ,
     MousePointer = 9 ' Size W E


PictureBox.Name="imgFrameRt"
     AutoRedraw = -1 ' True
     BorderStyle = 0 'None
     Picture = "(None)" ' ,
     MousePointer = 9 'Size W E 


PictureBox.Name="imgFrameDn"
     AutoRedraw = -1 'True
     BorderStyle = 0 'None
     Picture = "(None)" ' ,
     MousePointer = 7 'Size N S 


! ,  

PictureBox.Name="imgTopHead"
     AutoRedraw = -1 'True
     BorderStyle = 0 'None 


!
 

Label.Name="lblFormCapt"
     AutoSize = -1 'True
     BackStyle = 0 'Transparent
     Caption = "MyForm" '
     ForeColor = &H00FF0000& '  





! : lblFormCapt

 
!
Form.Caption

Form.ShowInTaskbar
="True" 
! , : 
! , "
MyApication", 
! : "
MyApication:


!  


PictureBox.Name="cmdMin"
     AutoSize = -1 'True
     BorderStyle = 0 'None
     Picture = "


PictureBox.Name="cmdMax"
     AutoSize = -1 'True
     BorderStyle = 0 'None
     Picture = "


PictureBox.Name="cmdRest"
     AutoSize = -1 'True
     BorderStyle = 0 'None
     Picture = " "
     Visible = 0 'False 


PictureBox.Name="cmdClose"
     AutoSize = -1 'True
     BorderStyle = 0 'None
     Picture = " "


! BorderStyle=0, ,


PictureBox.Name="imgMenu"
     BorderStyle = 0 'None

!

PictureBox.Name="imgToolBar"
     BorderStyle = 0 'None


!


PictureBox.Name="imgButt"
     BorderStyle = 0 'None


!


PictureBox.Name="imgStatusBar"
     BorderStyle = 0 'None


!  
!


PictureBox.Name="ClientArea"
     BackColor = &H00E1DFDF&


!
! : ,
.
VBasic

(2)

.

, 30 2006 . 15:22 () +
_  (32x32, 0Kb)
.
1) BorderStyle=0-None.
2) (, , , ) .
3) API .


VBasic

(3)

.

, 24 2006 . 16:18 () +
_ ...
?
. ...
, - , :
 (700x460, 54Kb)
VBasic

(1)

, 18 2006 . 08:01 () +


   __
: [1]