martincg 0 Newbie Poster

I can trun off the 'Hide underlined letters for keyboard navigation until I press the ALt key' feature using the WAPI like this (Delphi)

ul := true;
systemparametersinfo(SPI_SETKEYBOARDCUES,0,@ul,SPIF_UPDATEINIFILE + SPIF_SENDCHANGE);


But I can't reverse the effect by using


ul := false;
systemparametersinfo(SPI_SETKEYBOARDCUES,0,@ul,SPIF_UPDATEINIFILE + SPIF_SENDCHANGE);

Can anyone tell me what I am doing wrong?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.