T
Town
Unregistered / Unconfirmed
GUEST, unregistred user!
以下是一段Delphi程序,麻烦各位帮忙转成CBuilder的语言,
我对set不太懂的说,对照学习可能掌握的快一些
interface
uses
......,ShlObj;
type
TBrowseFlag = (
bf_BrowseForComputer,
bf_BrowseForPrinter,
bf_DontGoBelowDomain,
bf_ReturnFSanceStors,
bf_ReturnOnlyFSDIRS,
bf_StatusText);
TBrowseFlags = set of TBrowseFlag;
{略去......................................}
procedure TBrowseForFolder.SetOperFlag( F :Cardinal;
V :Boolean );
begin
{略去}
end;
procedure TBrowseForFolder.SetFlags( Value :TBrowseFlags );
{
SetOperFlag(BIF_BROWSEFORCOMPUTER,bf_BROWSEFORCOMPUTER in Value);
{略去}
}
........................................
function TBrowseForFolder.GetOperFlag( F :Cardinal ):boolean;
begin
{略去}
end;
function TBrowseForFolder.GetFlags;
begin
result := [];
if GetOperFlag(BIF_BROWSEFORCOMPUTER) then
include( result,bf_BROWSEFORCOMPUTER);
end
我对set不太懂的说,对照学习可能掌握的快一些
interface
uses
......,ShlObj;
type
TBrowseFlag = (
bf_BrowseForComputer,
bf_BrowseForPrinter,
bf_DontGoBelowDomain,
bf_ReturnFSanceStors,
bf_ReturnOnlyFSDIRS,
bf_StatusText);
TBrowseFlags = set of TBrowseFlag;
{略去......................................}
procedure TBrowseForFolder.SetOperFlag( F :Cardinal;
V :Boolean );
begin
{略去}
end;
procedure TBrowseForFolder.SetFlags( Value :TBrowseFlags );
{
SetOperFlag(BIF_BROWSEFORCOMPUTER,bf_BROWSEFORCOMPUTER in Value);
{略去}
}
........................................
function TBrowseForFolder.GetOperFlag( F :Cardinal ):boolean;
begin
{略去}
end;
function TBrowseForFolder.GetFlags;
begin
result := [];
if GetOperFlag(BIF_BROWSEFORCOMPUTER) then
include( result,bf_BROWSEFORCOMPUTER);
end