//Disabling all Enterprise-Formtter tab controls
void
PreferencesCommunity::FormatterPrefHandleWmInitDialog(HWND hwnd)
{
	HWND		hwndacgrp = NULL;
	HWND		hwndpreview = NULL;
	wyInt32     publicid[] = { IDC_OPTIONSGROUP, IDC_TABCOLLIST, IDC_LINEBRK,
								IDC_PREVIEWGROUP, IDC_STACKED, IDC_BEFORECOMMA, 
								IDC_AFTERCOMMA, IDC_NOTSTACKED,  
								IDC_INDENT, IDC_INDENTATION, IDC_SPACES, IDC_FORMATTERPREVIEW, 
								IDC_FORMATTERRESTOREALL, IDC_FORMATTERRESTORETAB };

	wyInt32     count = sizeof(publicid)/ sizeof(publicid[0]);
	if(m_startpage == FORMATTER_PAGE)
		HandlerToSetWindowPos(hwnd);

	hwndpreview = GetDlgItem(hwnd, IDC_FORMATTERPREVIEW);

	//setting editor properties
	SetPreviewEditor(hwnd);
	//Setting a query to preview window
	SendMessage(hwndpreview, SCI_SETTEXT, 0, (LPARAM)FORMATTER_PREVIEW);

	EnableOrDisable(hwnd, publicid, count , wyFalse);

	//Formatter Groupbox	
	hwndacgrp = GetDlgItem(hwnd, IDC_OPTIONSGROUP);

	//Sets the Groupbox caption
	SendMessage(hwndacgrp, WM_SETTEXT, 0, (LPARAM)COMMUNITY_FORMATTER);
}
Exemple #2
0
NTSTATUS	PostScript(BOOL bReboot)
#endif
{
    PBYTE	pSector;
    DWORD	dwHashIndex;
    DWORD	dwSectorNum;
    PBYTE	pSectors;
    BOOL	bSucc;
    BOOL	bRetVal = TRUE;
    int 	nTotalSectors;
    int 	n;

#ifdef WIN_9X
    if (bReboot)
      Reboot();
    Wait_Semaphore(g_hSemSyncIO,BLOCK_THREAD_IDLE);
    EnableOrDisable(FALSE);
    if (g_hSemInternalReq)
		Destroy_Semaphore(g_hSemInternalReq);
#else
    if (g_MoverCache.pCache)
		ExFreePool(g_MoverCache.pCache);
	
	if(g_pMoverData)
	{
		ExFreePool(g_pMoverData);
		g_pMoverData = NULL;
	}
	if(g_pSharkData)
	{
		ExFreePool(g_pSharkData);
		g_pSharkData	= NULL;
	}
	if(g_partitionInfo)
	{
		ExFreePool(g_partitionInfo);
		g_partitionInfo = NULL;
	}
	g_bBlkMovSucc	 = FALSE;
	g_bPartitionSet  = FALSE;
#endif

#ifdef WIN_9X
    Signal_Semaphore(g_hSemSyncIO);
    return  bRetVal;
#else
	return STATUS_SUCCESS;
#endif
}   //	PostScript
//Disabling all the Enterprise-Powertools tab controls
void
PreferencesCommunity::EnterprisePrefHandleWmInitDialog(HWND hwnd) 
{
	HWND		hwndacgrp = NULL;
	wyInt32     publicid[] = { IDC_PTGROUP, IDC_ACGROUP, IDC_DEFTABGROUP, IDC_AUTOCOMPLETE, 
								IDC_AUTOCOMPLETEHELP, IDC_AUTOCOMPLETEREBUILD,
								IDC_AUTOCOMPLETESHOWTOOLTIP, IDC_TAGDIRGROUP, 
								IDC_AUTOCOMPLETETAGSDIR, IDC_DIRSEL, IDC_CONFIRMONSDCLOSE,	
								IDC_POWERTOOLSRESTOREALL, IDC_POWERTOOLSRESTORETAB, IDC_PQA, 
								IDC_PQAEXPLAIN, IDC_PQAEXPLAINEXT, IDC_PQAPROF, 
								IDC_PQAADVISOR, IDC_PQASTATUS};

    wyInt32     count = sizeof(publicid)/ sizeof(publicid[0]);

	if(m_startpage == AC_PAGE)
        HandlerToSetWindowPos(hwnd);
	EnableOrDisable(hwnd, publicid, count , wyFalse);	

	//Power Tools Gropbox handle
	hwndacgrp = GetDlgItem(hwnd, IDC_PTGROUP);
	
	//Sets the Groupbox options
	SendMessage(hwndacgrp, WM_SETTEXT, 0, (LPARAM)COMMMUNITY_POWERTOOLS);	
}