Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Controls
  New Posts New Posts RSS Feed - CXTColorPicker does not send No Fill msg
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTColorPicker does not send No Fill msg

 Post Reply Post Reply
Author
Message
Faraz View Drop Down
Newbie
Newbie


Joined: 30 May 2008
Location: United Kingdom
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote Faraz Quote  Post ReplyReply Direct Link To This Post Topic: CXTColorPicker does not send No Fill msg
    Posted: 30 May 2008 at 10:12am

Hi,

I am trying to capture the event when a user hits the No Fill button on CXTColorPicker control. I have mapped ON_CPN_XT_SELNOFILL message but it crashes my app. My handler never gets called. It seems a bug to me. Any help will be appreciated.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 30 May 2008 at 2:58pm
Hello,
show related code.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Faraz View Drop Down
Newbie
Newbie


Joined: 30 May 2008
Location: United Kingdom
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote Faraz Quote  Post ReplyReply Direct Link To This Post Posted: 04 June 2008 at 10:14am
Hi there,
 
Here's the code snippet:-
 

BEGIN_MESSAGE_MAP(CGenSymbolStyleModificationDlg,PropertyPage)

ON_CPN_XT_SELNOFILL (IDC_BUTTON_SYMBOL_STYLE_EDIT_BACKGROUND_COLOUR, OnSelectNoFill)

END_MESSAGE_MAP()

void CGenSymbolStyleModificationDlg::OnSelectNoFill()

{ AfxMessageBox("no fill"); }

thanks
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 04 June 2008 at 2:05pm

Hi,

Code looks right.  I can't reproduce it with our Samples\Controls\ColorPicker  sample.
 
Maybe you can try ?
 
 
If it crash, please copy callstack and attach here. Thanks.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Faraz View Drop Down
Newbie
Newbie


Joined: 30 May 2008
Location: United Kingdom
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote Faraz Quote  Post ReplyReply Direct Link To This Post Posted: 09 June 2008 at 10:40am
Hi,
First of all many thanks for your help and input.
I tried the same code above in the codejock colorpicker sample and that crashed again and at the same place. Please find the call stack below.
 
 
> mfc80d.dll!CWnd::PostMessageA(unsigned int message=16, unsigned int wParam=0, long lParam=0)  Line 49 + 0x28 bytes C++
  ToolkitPro1120vc80D.dll!CXTColorPopup::EndSelection(int nCurSel=0)  Line 229 C++
  ToolkitPro1120vc80D.dll!CXTColorSelectorCtrl::OnLButtonUp(unsigned int nFlags=0, CPoint point={...})  Line 585 + 0x19 bytes C++
  mfc80d.dll!CWnd::OnWndMsg(unsigned int message=514, unsigned int wParam=0, long lParam=1245250, long * pResult=0x0012f130)  Line 2169 C++
  ToolkitPro1120vc80D.dll!CXTColorSelectorCtrl::OnWndMsg(unsigned int message=514, unsigned int wParam=0, long lParam=1245250, long * pResult=0x0012f130)  Line 46 + 0x7b bytes C++
  mfc80d.dll!CWnd::WindowProc(unsigned int message=514, unsigned int wParam=0, long lParam=1245250)  Line 1741 + 0x20 bytes C++
  mfc80d.dll!AfxCallWndProc(CWnd * pWnd=0x0037be90, HWND__ * hWnd=0x005d0b84, unsigned int nMsg=514, unsigned int wParam=0, long lParam=1245250)  Line 240 + 0x1c bytes C++
  mfc80d.dll!AfxWndProc(HWND__ * hWnd=0x005d0b84, unsigned int nMsg=514, unsigned int wParam=0, long lParam=1245250)  Line 389 C++
  mfc80d.dll!AfxWndProcBase(HWND__ * hWnd=0x005d0b84, unsigned int nMsg=514, unsigned int wParam=0, long lParam=1245250)  Line 411 + 0x15 bytes C++
  user32.dll!7e418734()  
  [Frames below may be incorrect and/or missing, no symbols loaded for user32.dll] 
  user32.dll!7e418816()  
  user32.dll!7e42a013()  
  user32.dll!7e42a998()  
  ToolkitPro1120vc80D.dll!CXTWndHook::WindowProc(unsigned int message=514, unsigned int wParam=0, long lParam=1245250)  Line 81 + 0x5b bytes C++
  ToolkitPro1120vc80D.dll!CXTShadowHook::WindowProc(unsigned int message=514, unsigned int wParam=0, long lParam=1245250)  Line 64 + 0x14 bytes C++
  ToolkitPro1120vc80D.dll!CXTWndHook::WindowProc(unsigned int message=514, unsigned int wParam=0, long lParam=1245250)  Line 81 + 0x2a bytes C++
  ToolkitPro1120vc80D.dll!CXTShadowHook::WindowProc(unsigned int message=514, unsigned int wParam=0, long lParam=1245250)  Line 64 + 0x14 bytes C++
  ToolkitPro1120vc80D.dll!CXTWindowMap::HookWndProc(HWND__ * hWnd=0x005d0b84, unsigned int message=514, unsigned int wParam=0, long lParam=1245250)  Line 138 + 0x1b bytes C++
  user32.dll!7e418734()  
  user32.dll!7e418816()  
  user32.dll!7e4189cd()  
  user32.dll!7e4196c7()  
  mfc80d.dll!AfxInternalPumpMessage()  Line 183 C++
  mfc80d.dll!CWinThread::PumpMessage()  Line 896 C++
  mfc80d.dll!AfxPumpMessage()  Line 190 + 0xd bytes C++
  mfc80d.dll!CWnd::RunModalLoop(unsigned long dwFlags=4)  Line 4322 + 0x5 bytes C++
  mfc80d.dll!CDialog::DoModal()  Line 587 + 0xc bytes C++
  ColorPickerD.exe!CColorPickerApp::InitInstance()  Line 84 + 0xb bytes C++
  mfc80d.dll!AfxWinMain(HINSTANCE__ * hInstance=0x00400000, HINSTANCE__ * hPrevInstance=0x00000000, char * lpCmdLine=0x00151f3d, int nCmdShow=1)  Line 37 + 0xd bytes C++
  ColorPickerD.exe!WinMain(HINSTANCE__ * hInstance=0x00400000, HINSTANCE__ * hPrevInstance=0x00000000, char * lpCmdLine=0x00151f3d, int nCmdShow=1)  Line 33 C++
  ColorPickerD.exe!__tmainCRTStartup()  Line 589 + 0x35 bytes C
  ColorPickerD.exe!WinMainCRTStartup()  Line 414 C
  kernel32.dll!7c817067()  
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 09 June 2008 at 4:12pm
Hi,
 
Sorry, still can't reproduce it with last release.   Guess it can be fixed already.
Please upgrade your sources
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.250 seconds.