mi opinion, Restaurar sistema causa mas problemas de los que te puede solucionar, yo que vos lo dejo deshabilitado.
Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.
Mostrar Mensajes Menú
Private Declare Function FileExists Lib "kernel32" Alias "GetShortPathNameA" (ByVal sFile As String, ByVal nu As Any, ByVal nu As Long) As Long
Private Sub Form_Load()
If FileExists("c:\aaaa.txt", 0&, 0) <> 0 Then
MsgBox "existe"
Else
MsgBox "No existe"
End If
End Sub
BOOL CALLBACK DialogProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam){
switch (message){
case WM_SIZE:
////////////////////////////////////////////////////////
RECT rc;
RECT rc2;
int hDlgWidth;
int hDlgHeight;
int tabgWidth;
int tabHeight;
GetWindowRect(hDlg, &rc);
GetWindowRect(Tab, &rc2); //Tab es el control TabStrip
hDlgWidth = rc.right - rc.left;
hDlgHeight = rc.bottom - rc.top;
tabgWidth = rc2.right - rc2.left;
tabHeight = rc2.bottom - rc2.top;
MoveWindow(Tab, 2, 81, (hDlgWidth -10),(hDlgHeight -115),1);
/////////////////////////////////////////////////////////
break;
}
return FALSE;
}
100 DIALOG DISCARDABLE 0, 0, 766, 399
STYLE DS_CENTER | WS_MINIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU |
WS_THICKFRAME
FONT 8, "MS Shell Dlg"
BEGIN
CONTROL "Tab1",IDC_TAB1,"SysTabControl32",0x0,2,50,764,348
END