Home > database >  12.6 pb pbm_erasebkgnd HDC returns 0
12.6 pb pbm_erasebkgnd HDC returns 0

Time:10-09

12.6 pb pbm_erasebkgnd HDC returns 0
Open this toobar use pb 12.5 and 9.0, all running normal
http://download.csdn.net/detail/hushuiqiu/4121904 PB11.5 source new DWTOOLBAR, enhanced version

12.6 open, but with the toolbar to run after, is the first display blank,



The mouse moves to the toolbar, will show the button, and the font is not normal, is close to the song typeface, no matter what font Settings, can show the correct font


Drag the window has the ghosting phenomenon



After debug step by step, found under 12.5 and 9.0 pb, pbm_erasebkgnd HDC in open, such as drag can return the correct value HDC

In pb12.6 haven't displayed in the window, pbm_erasebkgnd can return the correct value, but after the show, it returns 0, drag is also returns 0




This is what reason, the great god, I downloaded a lot of the toolbar, this problem is

And 12.6 the enlisted into single exe files, without PBD, cannot use the datastore
Bring the PBD, can use the datastore

The great god help me, this is what problem,,,,

CodePudding user response:

So complicated engineering, is a simple, test,

CodePudding user response:

PB12.6 new revised DWTOOLBAR

http://download.csdn.net/detail/qweasd2002/9845884

CodePudding user response:

1922649692 @qq.com if you have any questions

CodePudding user response:

Change a, I also encountered this problem, is very normal that version are not compatible

CodePudding user response:

PB in 11.5 and 12.6 no problem again I also encountered THIS problem, research day, finally control 12.6 kinds of GUI Code, put pbm_erasebkgnd HDC (11.5 is long, 12.6 has been replaced by longptr) into GetDC (Handle (THIS)) issue is resolved,

The Function ulong GetDC (ulong hWnd) Library "user32. DLL"

CodePudding user response:

I met this kind of problem, is also possibly phenomenon is the program runs fine will collapse at any time, can only be changed, all don't have to design the UI, directly from the menu button to deal with,

CodePudding user response:

refer to 6th floor WMERP response:
I also encountered this kind of question, and possibly phenomenon is the program runs fine will collapse at any time, can only be changed, all don't have to design the UI, use menu button directly to deal with,

And it is according to the fifth floor of the method has been modified, but my development environment is 7 + PB2017, 12.6 was useless, directly from 12.5 to 17, because there's a big BUG
12.6Getitemnumber and getitemdecimal complains, for example, just when this value is an integer value after getitemdecimal just say I can't type, long value cannot be assigned to DEC

CodePudding user response:

I've faced similar, but not 12 version, version is low to the high version of the time problem, at that time is 7 to 8, later I also have to redo some controls,
  • Related