|
of_restore
|
|
Full name
|
pfc_n_cst_winsrv_preference.of_restore
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_restore(string)
|
Name
|
Datatype
|
li_rc
|
integer
|
lnv_menu
|
n_cst_menu
|
lw_obj
|
window
|
public function integer of_restore (string as_regkey);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_Restore
//
// Access: public
//
// Arguments:
// as_regkey The registry key path to read values from.
//
// Returns: Integer
// 1 if it succeeds and -1 if an error occurs.
//
// Description: Restores the preference information from the Registry.
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 5.0 Initial version
//
//////////////////////////////////////////////////////////////////////////////
//
// Copyright © 1996-1997 Sybase, Inc. and its subsidiaries. All rights reserved.
// Any distribution of the PowerBuilder Foundation Classes (PFC)
// source code by other than Sybase, Inc. and its subsidiaries is prohibited.
//
//////////////////////////////////////////////////////////////////////////////
integer li_rc
window lw_obj
n_cst_menu lnv_menu
//Check for a window association with this object.
If IsNull(iw_requestor) Or Not IsValid (iw_requestor) Then
Return -1
End If
//Prevent flickering of toolbars.
lnv_menu.of_GetMDIFrame(iw_requestor.MenuID, lw_obj)
If IsValid(lw_obj) Then
lw_obj.SetRedraw(False)
Else
iw_requestor.SetRedraw(False)
End If
li_rc = of_Restore (True, as_regkey, '')
//Prevent flickering of toolbars.
If IsValid(lw_obj) Then
lw_obj.SetRedraw(True)
Else
iw_requestor.SetRedraw(True)
End If
Return li_rc
end function