by 1924 , however , pragmatism had begun to decline in popularity , and the social and political philosophy of karl marx , whose works had become widely known in china as early as 1919 , now became the philosophy of the chinese communist party and went on to dominate chinese thought for decades after the communists gained control of the country in 1949 .