Ver Mensaje Individual
  #2  
Antiguo 02-09-2006
Avatar de seoane
[seoane] seoane is offline
Miembro Premium
 
Registrado: feb 2004
Ubicación: A Coruña, España
Posts: 3.717
Reputación: 26
seoane Va por buen camino
No se cual es tu intención, pero aquí te dejo esta función. Convertirá todos los edits con asteriscos en edits normales.

Código Delphi [-]
function EnumChildProc(Handle: Thandle; lParam: LPARAM): BOOL; stdcall;
begin
  Result:= TRUE;
  if  (GetWindowLong(Handle,GWL_STYLE) and ES_PASSWORD) > 0 then
  begin
    PostMessage(Handle,EM_SETPASSWORDCHAR,0,0);
    RedrawWindow(Handle,nil,0,RDW_INVALIDATE);
  end;
end;

function EnumWindowsProc(Handle: Thandle; lParam: LPARAM): BOOL; stdcall;
begin
  Result:= TRUE;
  if isWindowVisible(Handle) then
    EnumChildWindows(Handle,@EnumChildProc,lParam);
end;

procedure NoMasSecretos;
begin
  EnumWindows(@EnumWindowsProc,0);
end;
Responder Con Cita