Click here to Skip to main content
15,909,437 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: document view in MFC Pin
Cedric Moonen9-Mar-09 1:58
Cedric Moonen9-Mar-09 1:58 
AnswerRe: document view in MFC Pin
Eytukan9-Mar-09 2:06
Eytukan9-Mar-09 2:06 
QuestionHelp Icon '?' in Property sheet Pin
Anu_Bala9-Mar-09 0:52
Anu_Bala9-Mar-09 0:52 
QuestionRe: Help Icon '?' in Property sheet Pin
Anu_Bala9-Mar-09 1:11
Anu_Bala9-Mar-09 1:11 
AnswerRe: Help Icon '?' in Property sheet Pin
«_Superman_»9-Mar-09 1:21
professional«_Superman_»9-Mar-09 1:21 
QuestionHow to make a custom control nicely? Pin
Igen18-Mar-09 23:58
Igen18-Mar-09 23:58 
AnswerRe: How to make a custom control nicely? Pin
Nishad S9-Mar-09 1:07
Nishad S9-Mar-09 1:07 
GeneralRe: How to make a custom control nicely? [modified] Pin
Igen19-Mar-09 1:31
Igen19-Mar-09 1:31 
Thank You!

I'll try to check the thing you've sad, but I'm not sure you speaking of a multiple instance dll or a static lib. Smile | :) Just kidding...

Yes I know I have perversions in programming, but this is why evryone likes my work... Big Grin | :-D

But I feel on bottom now, becouse I find a code doing something like this and just can't understand it. Sigh | :sigh: Sigh | :sigh: This is the link: http://www.efgh.com/software/pbutton.htm[^] and there can be found the source.

He use a struct called PICTUREBUTTON and initalize it in the message handler like this:
<br />
  PICTUREBUTTON far *p;<br />
  HGLOBAL hp = (HGLOBAL) GetWindowHandle(handle, 0);<br />
  if (hp != NULL)<br />
    p = (PICTUREBUTTON far *) GlobalLock(hp);<br />


I'm not sure how will this be permanent and also I just can't understand the jibberish about messages what the picturbutton send to it's parent...Confused | :confused: Confused | :confused: Confused | :confused: Big Grin | :-D

Edit: OK maybe I can make a use of the answer, but the instance is always know itself, but how could the parent know about the window??? In the example I just load the dll and it calls registerclass when DLL_PROCESS_ATTACH and that is it! So how to get the window handle for/from the parent?

modified on Monday, March 9, 2009 7:59 AM

GeneralRe: How to make a custom control nicely? Pin
Nishad S9-Mar-09 2:10
Nishad S9-Mar-09 2:10 
GeneralRe: How to make a custom control nicely? Pin
Nishad S9-Mar-09 2:17
Nishad S9-Mar-09 2:17 
GeneralRe: How to make a custom control nicely? Pin
Igen19-Mar-09 3:02
Igen19-Mar-09 3:02 
GeneralRe: How to make a custom control nicely? Pin
Nishad S9-Mar-09 3:20
Nishad S9-Mar-09 3:20 
GeneralRe: How to make a custom control nicely? Pin
Igen19-Mar-09 4:00
Igen19-Mar-09 4:00 
AnswerRe: How to make a custom control nicely? Pin
Stephen Hewitt9-Mar-09 3:04
Stephen Hewitt9-Mar-09 3:04 
GeneralRe: How to make a custom control nicely? Pin
Igen19-Mar-09 4:04
Igen19-Mar-09 4:04 
GeneralRe: How to make a custom control nicely? Pin
Stephen Hewitt9-Mar-09 20:03
Stephen Hewitt9-Mar-09 20:03 
QuestionHow to fetch cookie timeout value "in specific" using VC++ Pin
IamPoojaa8-Mar-09 23:31
IamPoojaa8-Mar-09 23:31 
AnswerRe: How to fetch cookie timeout value "in specific" using VC++ Pin
Code-o-mat9-Mar-09 2:02
Code-o-mat9-Mar-09 2:02 
QuestionDownload mutiple exe"s from webserver Pin
siva4558-Mar-09 23:30
siva4558-Mar-09 23:30 
AnswerRe: Download mutiple exe"s from webserver Pin
Eytukan8-Mar-09 23:53
Eytukan8-Mar-09 23:53 
GeneralRe: Download mutiple exe"s from webserver Pin
siva4558-Mar-09 23:59
siva4558-Mar-09 23:59 
QuestionRe: Download mutiple exe"s from webserver Pin
David Crow9-Mar-09 4:18
David Crow9-Mar-09 4:18 
AnswerRe: Download mutiple exe"s from webserver Pin
Iain Clarke, Warrior Programmer10-Mar-09 2:45
Iain Clarke, Warrior Programmer10-Mar-09 2:45 
QuestionCWinthread Remote Threads Pin
ForNow8-Mar-09 22:23
ForNow8-Mar-09 22:23 
AnswerRe: CWinthread Remote Threads Pin
Cedric Moonen8-Mar-09 22:27
Cedric Moonen8-Mar-09 22:27 

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.