Home > MFC, Windows API > Creating an unmovable dialog!

Creating an unmovable dialog!

Just try this from OnInitDialog, this trick will make any window unmovable.

CMenu* pSysMenu = GetSystemMenu(FALSE);
pSysMenu->RemoveMenu(SC_MOVE, MF_BYCOMMAND);

Lol lol now it’s not moving. Ah no!!! Now tell me how can I make it movable again? Lol the funniest question of the century…ROTFL. :)

About these ads
  1. March 21, 2008 at 12:37 pm

    :D

  2. bw
    March 20, 2008 at 11:11 pm

    this is funny :PPP

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: