Click here to Skip to main content
15,921,697 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalsend .bmp or .gif or .jpg file to clipboard Pin
CS4291-Jun-03 18:48
CS4291-Jun-03 18:48 
GeneralRe: send .bmp or .gif or .jpg file to clipboard Pin
Roger Allen2-Jun-03 2:03
Roger Allen2-Jun-03 2:03 
GeneralRe: send .bmp or .gif or .jpg file to clipboard Pin
CS4292-Jun-03 20:31
CS4292-Jun-03 20:31 
GeneralDDX Control Problem Pin
Steven M Hunt1-Jun-03 18:42
Steven M Hunt1-Jun-03 18:42 
GeneralRe: DDX Control Problem Pin
peterchen1-Jun-03 18:50
peterchen1-Jun-03 18:50 
GeneralRe: DDX Control Problem Pin
Steven M Hunt1-Jun-03 18:55
Steven M Hunt1-Jun-03 18:55 
GeneralRe: DDX Control Problem Pin
Anna-Jayne Metcalfe1-Jun-03 23:49
Anna-Jayne Metcalfe1-Jun-03 23:49 
GeneralAbout as win32 question. Pin
sunjohn1-Jun-03 17:16
sunjohn1-Jun-03 17:16 
:(I am a chinese,my english is poor.so I am sorry.
The question is : why don't show the graph that I write this program. This program code:
#include "stdafx.h"
#include <windows.h>
#include <math.h>
#define NUM 1000
#define TWOPI (2*3.14159)
LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM);
int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
char szClassName[ ] = "WindowsApp";
HWND hwnd;
MSG messages;
WNDCLASSEX wincl;
wincl.hInstance = hInstance;
wincl.lpszClassName = szClassName;
wincl.lpfnWndProc = WindowProcedure;
wincl.style = CS_DBLCLKS;
wincl.cbSize = sizeof (WNDCLASSEX);
wincl.hIcon = LoadIcon (NULL, IDI_APPLICATION);
wincl.hIconSm = LoadIcon (NULL, IDI_APPLICATION);
wincl.hCursor = LoadCursor (NULL, IDC_ARROW);
wincl.lpszMenuName = NULL;
wincl.cbClsExtra = 0;
wincl.cbWndExtra = 0;
wincl.hbrBackground = (HBRUSH)GetStockObject(WHITE_BRUSH);
if (!RegisterClassEx (&wincl))
{
MessageBox(NULL,TEXT("this program required windows nt!"),
szClassName,MB_ICONERROR);
return 0;
}
hwnd = CreateWindowEx(0,szClassName,"Windows App",
WS_OVERLAPPEDWINDOW,
CW_USEDEFAULT, /* Windows decides the position */
CW_USEDEFAULT, /* where the window ends up on the screen */
544, /* The programs width */
375, /* and height in pixels */
HWND_DESKTOP,
NULL,
hInstance,
NULL);
ShowWindow (hwnd, nCmdShow);
UpdateWindow(hwnd);
while(GetMessage(&messages,NULL,0,0))
{
TranslateMessage(&messages);
DispatchMessage(&messages);
}
return messages.wParam;
}
LRESULT CALLBACK WindowProcedure(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
static int cxClient,cyClient;
HDC hdc;
int i;
PAINTSTRUCT ps;
POINT apt[NUM];
switch (message)
{
case WM_SIZE:
cxClient = LOWORD(message);
cyClient = HIWORD(message);
return 0;
case WM_PAINT:
hdc = BeginPaint(hwnd,&ps);
MoveToEx(hdc,0,cyClient/2,NULL);
LineTo(hdc,cxClient,cyClient/2);
for(i=0;i
GeneralRe: About as win32 question. Pin
Toni781-Jun-03 20:00
Toni781-Jun-03 20:00 
GeneralRe: About as win32 question. Pin
sunjohn1-Jun-03 22:09
sunjohn1-Jun-03 22:09 
GeneralRe: About as win32 question. Pin
Toni782-Jun-03 12:20
Toni782-Jun-03 12:20 
GeneralNET SEND ~ HELP ME Pin
BoyceMan1-Jun-03 16:48
BoyceMan1-Jun-03 16:48 
GeneralRe: NET SEND ~ HELP ME Pin
Ken Mazaika1-Jun-03 17:00
Ken Mazaika1-Jun-03 17:00 
GeneralRe: NET SEND ~ HELP ME Pin
Chris Richardson1-Jun-03 17:20
Chris Richardson1-Jun-03 17:20 
GeneralRe: NET SEND ~ HELP ME Pin
Abbas_Riazi1-Jun-03 19:34
professionalAbbas_Riazi1-Jun-03 19:34 
GeneralRe: NET SEND ~ HELP ME Pin
BoyceMan2-Jun-03 9:09
BoyceMan2-Jun-03 9:09 
GeneralRe: NET SEND ~ HELP ME Pin
Tom Wright2-Jun-03 11:49
Tom Wright2-Jun-03 11:49 
GeneralRe: NET SEND ~ HELP ME Pin
BoyceMan2-Jun-03 11:59
BoyceMan2-Jun-03 11:59 
GeneralRe: NET SEND ~ HELP ME Pin
Abbas_Riazi2-Jun-03 19:52
professionalAbbas_Riazi2-Jun-03 19:52 
GeneralRe: NET SEND ~ HELP ME Pin
Anonymous6-Jun-03 9:04
Anonymous6-Jun-03 9:04 
Generalrotate, mirror, drawn objects Pin
shanila1-Jun-03 16:33
shanila1-Jun-03 16:33 
QuestionHow to add bar containing icons in my CFileDialog? Pin
julych1-Jun-03 10:47
julych1-Jun-03 10:47 
AnswerRe: How to add bar containing icons in my CFileDialog? Pin
Mahesh Varma1-Jun-03 23:57
Mahesh Varma1-Jun-03 23:57 
AnswerRe: How to add bar containing icons in my CFileDialog? Pin
Anna-Jayne Metcalfe2-Jun-03 0:01
Anna-Jayne Metcalfe2-Jun-03 0:01 
Generaldouble to string Pin
IceMatrix1-Jun-03 10:09
IceMatrix1-Jun-03 10:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.