从网上找了段代码,代码中的“(Style and WS_GROUP) = WS_GROUP”是什么意思,思路上要怎么理解?
function CheckStyle(aHWnd: HWnd): Boolean;
var Style: LongInt;
begin
Result := false;
Style := GetWindowLong(aHWnd, GWL_STYLE);
if (Style and WS_POPUP) = WS_POPUP then
begin
if (((Style and WS_GROUP) = WS_GROUP) and not ((Style and WS_DISABLED) = WS_DISABLED) and ((Style and WS_SYSMENU) = WS_SYSMENU))then
begin
Result := True;
end;
end
else
Result := True;
end;
function CheckStyle(aHWnd: HWnd): Boolean;
var Style: LongInt;
begin
Result := false;
Style := GetWindowLong(aHWnd, GWL_STYLE);
if (Style and WS_POPUP) = WS_POPUP then
begin
if (((Style and WS_GROUP) = WS_GROUP) and not ((Style and WS_DISABLED) = WS_DISABLED) and ((Style and WS_SYSMENU) = WS_SYSMENU))then
begin
Result := True;
end;
end
else
Result := True;
end;
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货