Click here to Skip to main content
15,794,475 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: UI Programming start Pin
_AnsHUMAN_ 27-Feb-06 19:10
_AnsHUMAN_ 27-Feb-06 19:10 
QuestionHow to Compute the ID of "eject" menuitem? Pin
Syouki_kou27-Feb-06 15:07
Syouki_kou27-Feb-06 15:07 
AnswerRe: How to Compute the ID of "eject" menuitem? Pin
mbue27-Feb-06 16:47
mbue27-Feb-06 16:47 
GeneralRe: How to Compute the ID of "eject" menuitem? Pin
Syouki_kou27-Feb-06 17:42
Syouki_kou27-Feb-06 17:42 
GeneralRe: How to Compute the ID of "eject" menuitem? Pin
Nibu babu thomas27-Feb-06 18:15
Nibu babu thomas27-Feb-06 18:15 
GeneralRe: How to Compute the ID of "eject" menuitem? Pin
mbue27-Feb-06 22:19
mbue27-Feb-06 22:19 
GeneralRe: How to Compute the ID of "eject" menuitem? Pin
Syouki_kou27-Feb-06 23:02
Syouki_kou27-Feb-06 23:02 
GeneralRe: How to Compute the ID of "eject" menuitem? Pin
mbue27-Feb-06 23:49
mbue27-Feb-06 23:49 
The Code only works if you have a toplevel window. You can create such a window by call:
<br />
LRESULT FAR PASCAL __WndProc(HWND h,int m,WPARAM w,LPARAM l)<br />
{<br />
  switch(m)<br />
  {<br />
    case WM_DEVICECHANGE:<br />
      // do your action here!<br />
    break;<br />
  }<br />
  return DefWindowProc(h,m,w,l);<br />
}<br />
<br />
void AnyFunction()<br />
{<br />
WNDCLASS	wc; memset(&wc,0,sizeof(wc));<br />
HWND		hwnd=0;<br />
wc.lpfnWndProc   = (WNDPROC)__WndProc; <br />
wc.hInstance     = GetModuleHandle(); <br />
wc.lpszClassName = "catchDeviceMsg";<br />
if(RegisterClass(&wc))<br />
  hwnd = CreateWindowEx(0,wc.lpszClassName,"",WS_OVERLAPPEDWINDOW,0,0,0,0,0,0,wc.hInstance,0); // invisible<br />
}

QuestionInstalling virtual hardware with installer Pin
rarefluid27-Feb-06 14:44
rarefluid27-Feb-06 14:44 
QuestionLink Error LNK1209 Pin
dahill27-Feb-06 14:16
dahill27-Feb-06 14:16 
AnswerRe: Link Error LNK1209 Pin
PJ Arends27-Feb-06 16:24
professionalPJ Arends27-Feb-06 16:24 
AnswerRe: Link Error LNK1209 Pin
mbue27-Feb-06 16:54
mbue27-Feb-06 16:54 
AnswerRe: Link Error LNK1209 Pin
Vinaya27-Feb-06 19:20
Vinaya27-Feb-06 19:20 
QuestionRe: Link Error LNK1209 Pin
dahill28-Feb-06 9:21
dahill28-Feb-06 9:21 
NewsRe: Link Error LNK1209 Pin
dahill28-Feb-06 12:36
dahill28-Feb-06 12:36 
AnswerRe: Link Error LNK1209 Pin
dahill1-Mar-06 8:57
dahill1-Mar-06 8:57 
QuestionBitmap in a dialog Pin
69 Bay27-Feb-06 13:35
69 Bay27-Feb-06 13:35 
AnswerRe: Bitmap in a dialog Pin
Christian Graus27-Feb-06 15:19
protectorChristian Graus27-Feb-06 15:19 
GeneralRe: Bitmap in a dialog Pin
69 Bay28-Feb-06 1:04
69 Bay28-Feb-06 1:04 
GeneralRe: Bitmap in a dialog Pin
Christian Graus28-Feb-06 11:54
protectorChristian Graus28-Feb-06 11:54 
GeneralRe: Bitmap in a dialog Pin
69 Bay1-Mar-06 9:11
69 Bay1-Mar-06 9:11 
AnswerRe: Bitmap in a dialog Pin
Hamid_RT27-Feb-06 18:32
Hamid_RT27-Feb-06 18:32 
QuestionFrameless MDI Child Pin
garaber27-Feb-06 11:10
garaber27-Feb-06 11:10 
AnswerRe: Frameless MDI Child Pin
mbue27-Feb-06 17:00
mbue27-Feb-06 17:00 
Questionindex problem - please help... Pin
SWDevil27-Feb-06 11:07
SWDevil27-Feb-06 11:07 

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.