Pentru
C#Pentru C++, setezi prima oara o fereastra transparenta (codul e de pe MSDN)
//C++
private:
void CreateMyOpaqueForm()
{
// Create a new form.
Form* form2 = new Form();
// Set the text displayed in the caption.
form2->Text = S"My Form";
// Set the opacity to 75%.
form2->Opacity = .75;
// Size the form to be 300 pixels in height and width.
form2->Size = System::Drawing::Size(300,300);
// Display the form in the center of the screen.
form2->StartPosition = FormStartPosition::CenterScreen;
// Display the form as a modal dialog box.
form2->ShowDialog();
}
Apoi faci fereastra allways on top (de pe CodeGuru)
void CTopDlgDemoDlg::StayOnTop() const
{
CRect rect;
// get the current window size and position
GetWindowRect( rect );
// now change the size, position, and Z order
// of the window.
::SetWindowPos(m_hWnd , // handle to window
HWND_TOPMOST, // placement-order handle
rect.left, // horizontal position
rect.top, // vertical position
rect.Width(), // width
rect.Height(), // height
SWP_SHOWWINDOW // window-positioning options);
}
Cel putin asta e principiul, sunt la lucru acum si nu am timp sa testez, hope this helps