Click here to Skip to main content
15,888,527 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: about create a strange window(can change size) and paint it gradient background. Pin
Owner drawn4-Jan-06 16:52
Owner drawn4-Jan-06 16:52 
GeneralRe: about create a strange window(can change size) and paint it gradient background. Pin
HOW WHAT4-Jan-06 18:51
HOW WHAT4-Jan-06 18:51 
GeneralRe: about create a strange window(can change size) and paint it gradient background. Pin
Owner drawn4-Jan-06 21:02
Owner drawn4-Jan-06 21:02 
AnswerRe: about create a strange window(can change size) and paint it gradient background. Pin
rohinimtech8-Jan-06 18:54
rohinimtech8-Jan-06 18:54 
QuestionPlease give me some suggestion! Pin
LaHaHa4-Jan-06 15:08
LaHaHa4-Jan-06 15:08 
AnswerRe: Please give me some suggestion! Pin
Owner drawn4-Jan-06 17:16
Owner drawn4-Jan-06 17:16 
GeneralRe: Please give me some suggestion! Pin
LaHaHa4-Jan-06 18:28
LaHaHa4-Jan-06 18:28 
GeneralRe: Please give me some suggestion! Pin
Owner drawn4-Jan-06 20:15
Owner drawn4-Jan-06 20:15 
GeneralRe: Please give me some suggestion! Pin
LaHaHa4-Jan-06 21:21
LaHaHa4-Jan-06 21:21 
GeneralRe: Please give me some suggestion! Pin
vikas amin4-Jan-06 20:08
vikas amin4-Jan-06 20:08 
AnswerRe: Please give me some suggestion! Pin
Cool Ju4-Jan-06 22:08
Cool Ju4-Jan-06 22:08 
GeneralRe: Please give me some suggestion! Pin
LaHaHa4-Jan-06 23:33
LaHaHa4-Jan-06 23:33 
GeneralRe: Please give me some suggestion! Pin
Cool Ju4-Jan-06 23:45
Cool Ju4-Jan-06 23:45 
GeneralRe: Please give me some suggestion! Pin
LaHaHa5-Jan-06 14:28
LaHaHa5-Jan-06 14:28 
QuestionFile Transfer Client/Server (Proof Read) Pin
thes3cr3t14-Jan-06 12:32
thes3cr3t14-Jan-06 12:32 
AnswerRe: File Transfer Client/Server (Proof Read) Pin
sunit54-Jan-06 20:06
sunit54-Jan-06 20:06 
Questionresize Frame Pin
LeeeNN4-Jan-06 11:50
LeeeNN4-Jan-06 11:50 
AnswerRe: resize Frame Pin
Christian Graus4-Jan-06 12:31
protectorChristian Graus4-Jan-06 12:31 
AnswerRe: resize Frame Pin
vikas amin4-Jan-06 20:07
vikas amin4-Jan-06 20:07 
QuestionManaging Threads in VC++ Pin
pavanbabut4-Jan-06 10:43
pavanbabut4-Jan-06 10:43 
AnswerRe: Managing Threads in VC++ Pin
Blake Miller4-Jan-06 11:44
Blake Miller4-Jan-06 11:44 
GeneralRe: Managing Threads in VC++ Pin
pavanbabut4-Jan-06 12:04
pavanbabut4-Jan-06 12:04 
GeneralRe: Managing Threads in VC++ Pin
Blake Miller4-Jan-06 12:23
Blake Miller4-Jan-06 12:23 
HANDLE CreateThread(
LPSECURITY_ATTRIBUTES lpThreadAttributes,
SIZE_T dwStackSize,
LPTHREAD_START_ROUTINE lpStartAddress,
LPVOID lpParameter,
DWORD dwCreationFlags,
LPDWORD lpThreadId
);

In other words, the value RETURNED from CreateThread is what is used in the calls to Resume and Suspend.

Or, you can get the thread handle using OpenThread, if you know the thread identifier.

HANDLE OpenThread(
DWORD dwDesiredAccess,
BOOL bInheritHandle,
DWORD dwThreadId
);

Be sure to close the handle you opened if oyu use this second approach.
I usually retain the thread handle returnd from CreateThread instead of constantly opening and closing the thread handle.



Marriage slows down your coding, a baby slows it down even more!
GeneralRe: Managing Threads in VC++ Pin
vikas amin4-Jan-06 18:21
vikas amin4-Jan-06 18:21 
QuestionProblem with SetBkColor Pin
KellyR4-Jan-06 10:00
KellyR4-Jan-06 10:00 

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.