Click here to Skip to main content
16,010,491 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: what happened when CImage load a 16-bit BMP file Pin
fitatc11-Sep-08 18:09
fitatc11-Sep-08 18:09 
GeneralRe: what happened when CImage load a 16-bit BMP file Pin
Mark Salsbery12-Sep-08 4:59
Mark Salsbery12-Sep-08 4:59 
GeneralRe: what happened when CImage load a 16-bit BMP file Pin
Mark Salsbery12-Sep-08 5:01
Mark Salsbery12-Sep-08 5:01 
QuestionPostMessage() function Pin
Dhiraj kumar Saini7-Sep-08 21:57
Dhiraj kumar Saini7-Sep-08 21:57 
AnswerRe: PostMessage() function Pin
_AnsHUMAN_ 7-Sep-08 22:01
_AnsHUMAN_ 7-Sep-08 22:01 
GeneralRe: PostMessage() function Pin
Dhiraj kumar Saini7-Sep-08 22:46
Dhiraj kumar Saini7-Sep-08 22:46 
GeneralRe: PostMessage() function Pin
CPallini7-Sep-08 22:51
mveCPallini7-Sep-08 22:51 
AnswerRe: PostMessage() function Pin
CPallini7-Sep-08 22:39
mveCPallini7-Sep-08 22:39 
Dhiraj kumar Saini wrote:
Is it Possible to pass a structure in PostMessage()

Yes.


Dhiraj kumar Saini wrote:
if Possible please tell how


Pass a pointer to the structure as LPARAM. for instance:
// make sure the struct doesn't go out of scope (make 'static' to give it only file-visibility)
static MyStruct ms;

// worker thread
UINT MyWorkerThread( LPVOID pParam )
{
 //... do stuff
 ms.iProgress = 10;// update struct's member
 // .. update other struct's members
 PostMessage(hWnd, WM_MY_MESSAGE, (WPARAM)0, (LPARAM)&ms);
 //... do stuff
}

Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]

GeneralRe: PostMessage() function Pin
Dhiraj kumar Saini7-Sep-08 23:18
Dhiraj kumar Saini7-Sep-08 23:18 
GeneralRe: PostMessage() function Pin
CPallini7-Sep-08 23:26
mveCPallini7-Sep-08 23:26 
QuestionAbout Graphics::RotateTransform()???? Pin
TooShy2Talk7-Sep-08 21:32
TooShy2Talk7-Sep-08 21:32 
AnswerRe: About Graphics::RotateTransform()???? Pin
CPallini7-Sep-08 21:37
mveCPallini7-Sep-08 21:37 
QuestionRe: About Graphics::RotateTransform()???? Pin
TooShy2Talk7-Sep-08 21:57
TooShy2Talk7-Sep-08 21:57 
AnswerRe: About Graphics::RotateTransform()???? Pin
SandipG 7-Sep-08 22:00
SandipG 7-Sep-08 22:00 
QuestionRe: About Graphics::RotateTransform()???? Pin
TooShy2Talk7-Sep-08 22:45
TooShy2Talk7-Sep-08 22:45 
AnswerRe: About Graphics::RotateTransform()???? Pin
SandipG 7-Sep-08 22:51
SandipG 7-Sep-08 22:51 
QuestionInitializing class from it's name - Standard C++ Pin
N a v a n e e t h7-Sep-08 21:05
N a v a n e e t h7-Sep-08 21:05 
QuestionRe: Initializing class from it's name - Standard C++ Pin
CPallini7-Sep-08 21:33
mveCPallini7-Sep-08 21:33 
AnswerRe: Initializing class from it's name - Standard C++ Pin
N a v a n e e t h7-Sep-08 23:25
N a v a n e e t h7-Sep-08 23:25 
GeneralRe: Initializing class from it's name - Standard C++ Pin
CPallini7-Sep-08 23:33
mveCPallini7-Sep-08 23:33 
GeneralRe: Initializing class from it's name - Standard C++ Pin
N a v a n e e t h7-Sep-08 23:40
N a v a n e e t h7-Sep-08 23:40 
GeneralRe: Initializing class from it's name - Standard C++ Pin
CPallini7-Sep-08 23:51
mveCPallini7-Sep-08 23:51 
GeneralRe: Initializing class from it's name - Standard C++ Pin
N a v a n e e t h8-Sep-08 0:14
N a v a n e e t h8-Sep-08 0:14 
GeneralRe: Initializing class from it's name - Standard C++ Pin
CPallini8-Sep-08 0:35
mveCPallini8-Sep-08 0:35 
GeneralRe: Initializing class from it's name - Standard C++ Pin
N a v a n e e t h8-Sep-08 0:48
N a v a n e e t h8-Sep-08 0:48 

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.