Welcome to the Club Penguin Wiki! Log in or Create an account to join the community!

User:Nando144: Difference between revisions

From the Club Penguin Wiki, the free, editable encyclopedia about Club Penguin
Jump to navigation Jump to search
imported>Nando144
C++
Line 1: Line 1:
{{POTM}}
#include <windows.h>
{{clear}}
 
{{PinLocation}}
const char g_szClassName[] = "lulz";
 
{{UserInfobox
LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|bgcolor = Orange
{
|textcolor= Blue
    switch(msg)
|User name = Nando144
    {
|image = File:Nando1442.png
      case WM_CLOSE:
|caption = Me on April 6, 2011 - April 21, 2011
          DestroyWindow(hwnd);
|penguins name =Nando144
      break;
|favorites = [[Holiday Party]]
      case WM_DESTROY:
|member = Yes
          PostQuitMessage(0);
|first pin = [[Taco pin]]
      break;
|famous peng = [[Penguin Band]], [[Aunt Arctic]], [[Gary]], [[Rockhopper]], [[Sensei]] and [[Rookie]].
      default:
|joined wiki = April 21, 2010
          return DefWindowProc(hwnd, msg, wParam, lParam);
|joined cp = July 21, 2008
      break;
|admin = No
    }
}}
    return 0;
 
}
 
==My Pages==
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
*[[User:Nando144/Awards|Want to see some awards?]]
{
*[[User:Nando144/Templates|WOW! Some cool templates here]]
    WNDCLASSEX wc;
 
    HWND hwnd;
==My Signatures==
    MSG Msg;
*[[User:Nando144|''<span style="color:#0000FF; background:##008000">Nando144</span>]] [[User talk:Nando144|<span style="color:#008000; background:##008000">Talk with me!</span>]] (Normal) (Current)
 
    wc.cbSize = sizeof(WNDCLASSEX);
 
    wc.style=0;
===Holiday Signatures===
    wc.lpfnWndProc = WndProc;
*[[User:Nando144|''<span style="color:#7FFFD4; background:#FFFFFF">Nando144</span>]] [[User talk:Nando144|<span style="color:#FFA500; background:##008000">Easter!</span>]] [[Special:Contributions/Nando144|<span style="color:#50C878; background:##008000">Save the Earth!</span>]] (Easter and Earth Day - April, 8 to 22 - 2012)
    wc.cbClsExtra = 0;
 
    wc.cbWndExtra = 0;
*[[User:Nando144|''<span style="color:#FF8C00; background:#FFFFFF">I Think that you would see this</span>]] [[User talk:Nando144|<span style="color:#008000; background:#120A8F">Primeiro de Abril!</span>]] [[Special:Contributions/Nando144|<span style="color:#FFBF00; background:#FFFFFF">Hablas español?</span>]] (April Fools - April, 1)
    wc.hInstance = hInstance;
 
    wc.hIcon = LoadIcon(NULL, IDI_APPLICATION);
*[[User:Nando144|''<span style="color:#FF0000; background:#FFFFFF">Ye Olde NandoCXLIV</span>]] [[User talk:Nando144|<span style="color:#DAA520; background:##008000">Welcome to our Kingdom!</span>]] (Medieval Party - (May)
    wc.hCursor = LoadCursor(NULL, IDC_ARROW);
 
    wc.hbrBackground = (HBRUSH) (COLOR_WINDOW+1);
*[[User:Nando144|''<span style="color:#0000FF; background:##008000">Nando144</span>]] [[User talk:Nando144|<span style="color:#FF8C00; background:##008000">August 25</span>]] [[Special:Contributions/Nando144|<span style="color:#0000FF; background:##008000">My Birthday!</span>]] (August 23 - 25)
    wc.lpszMenuname=NULL%3B
 
    wc.lpszClassname=g_szClassName%3B
*[[User:Nando144|''<span style="color:#006400; background:#FFFFFF">Nando144</span>]] [[User talk:Nando144|<span style="color:#FF0000; background:#FFFFFF">Merry Christmas...</span>]] [[Special:Contributions/Nando144|<span style="color:#AFEEEE; background:#000000">And a Happy New Year!</span>]] (Christmas and New Year - December, 25 - January, 1)
    wc.hIconSm = LoadIcon(NULL, IDI_APPLICATION);
 
   
*[[User:Nando144|''<span style="color:#EC2300; background:#FFFFFF">Nando144</span>]] [[User talk:Nando144|<span style="color:#FF007F; background:#FFFFFF">Happy Valentine Day!</span>]] (Valentine Day - June, 13)
    hwnd = CreateWindowEx(
 
      WS_EX_CLIENTEDGE,
==Gallery==
      g_szClassName,
<gallery>
      "Worthless Piece of shit.",
File:AAandMe.PNG|[[Aunt Arctic]] and me at the [[6th Anniversary Party]].
      WS_OVERLAPPEDWINDOW,
</gallery>
      CW_USEDEFAULT, CW_USEDEFAULT, 240, 120,
      NULL, NULL, hInstance, NULL);
    ShowWindow(hwnd, nCmdShow);
    UpdateWindow(hwnd);
   
    while(GetMessage(&Msg, NULL, 0, 0) > 0)
    {
      TranslateMessage(&Msg);
      DispatchMessage(&Msg);
    }
    return Msg.wParam;
}

Revision as of 11:53, 29 October 2011

  1. include <windows.h>
const char g_szClassName[] = "lulz";

LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
   switch(msg)
   {
      case WM_CLOSE:
         DestroyWindow(hwnd);
      break;
      case WM_DESTROY:
         PostQuitMessage(0);
      break;
      default:
         return DefWindowProc(hwnd, msg, wParam, lParam);
      break;
   }
   return 0;
}

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
   WNDCLASSEX wc;
   HWND hwnd;
   MSG Msg;

   wc.cbSize = sizeof(WNDCLASSEX);
   wc.style=0;
   wc.lpfnWndProc = WndProc;
   wc.cbClsExtra = 0;
   wc.cbWndExtra = 0;
   wc.hInstance = hInstance;
   wc.hIcon = LoadIcon(NULL, IDI_APPLICATION);
   wc.hCursor = LoadCursor(NULL, IDC_ARROW);
   wc.hbrBackground = (HBRUSH) (COLOR_WINDOW+1);
   wc.lpszMenuname=NULL%3B
   wc.lpszClassname=g_szClassName%3B
   wc.hIconSm = LoadIcon(NULL, IDI_APPLICATION);
   
   hwnd = CreateWindowEx(
      WS_EX_CLIENTEDGE,
      g_szClassName,
      "Worthless Piece of shit.",
      WS_OVERLAPPEDWINDOW,
      CW_USEDEFAULT, CW_USEDEFAULT, 240, 120,
      NULL, NULL, hInstance, NULL);

   ShowWindow(hwnd, nCmdShow);
   UpdateWindow(hwnd);
   
   while(GetMessage(&Msg, NULL, 0, 0) > 0)
   {
      TranslateMessage(&Msg);
      DispatchMessage(&Msg);
   }
   return Msg.wParam;
}